Am Dienstag 14 Dezember 2010, 17:05:42 schrieb Darryl Wallace:
> One of the things I've found in this regard has to do with Python and
> garbage collection. If the reference count to certain objects does not go
> to zero then the item will not be garbage collected.
>
> Ensure that the objects tha
Am Freitag 10 Dezember 2010, 10:36:22 schrieb NARCISO, Rui:
> In fact I had already tried that syntax without any success.
>
> Further tests showed that in fact I am able to "watch" a file if it's in
> the same folder as my application, ie, if the path that I add to the
> watcher is just the name
Am Montag 06 Dezember 2010, 14:30:32 schrieben Sie:
> I get a spontaneous hide event when the window is minimized.
> self.setVisible(False) works too.
Yeah, my wording was misleading. What I wanted to say is that hide() leads to
a hideEvent(), not the other way round. hide() is equivalent to
s
Am Freitag 03 Dezember 2010, 14:40:17 schrieb Mikael Modin:
> I'm trying to implement minimize-to-tray but my application refuses to
> hide from taskbar.
That's obviously up to the window manager, but there's a difference between
hidden and closed windows. Closed windows should not appear in the
Hi!
Am 02.12.2010 um 00:39 schrieb luxInteg:
> I am learnig to use pyqt4 in a cmake project.
I would like to know how to do that properly, too.
Thorben Kröger was so nice to send me CMakeLists which I integrated into my
VigraQt repository (*), but they do not work anymore. His work was based o
Hi again!
Am 01.12.2010 um 18:22 schrieb Gionata Boccalini:
> Only a small doubt on the last fix: isn't too expensive or slow to recreate a
> QFileSystemModel at every signal??
Yes, it's not very nice, but obviously there's a bug in QFileSystemModel, so I
resorted to this hack to reset its stat
Hi again!
Op den Dunnersdag 25 November 2010 Klock 21:15:19 hett Gionata Boccalini
schreven:
> Ok, don't worry, I absolutely don't want to waste your time!! But what
> do you mean with
>
> > In
> > general, your code could (and should) be much more concise.
OK, I had a look again, your code is
Op den Middeweken 24 November 2010 Klock 21:53:57 hett Gionata Boccalini > If
I select A I can see only files and this is right. Then if I select
> B I can see only files again and this is right!! But then if I select A
> folder again I can see files and the B folder
I am sorry, I absolu
Op den Dingsdag 23 November 2010 Klock 18:03:15 hett Hans Meine schreven:
> void QFileSystemModel::setFilter ( QDir::Filters filters )
> Sets the directory model's filter to that specified by filters.
> *Note that the filter you set should always include the QDir::AllDirs* enum
>
Hi again!
Op den Dingsdag 23 November 2010 Klock 23:39:11 hett Gionata Boccalini
schreven:
> Ok , but if I specify the filters in this way:
>
> self.__fileModel.setFilter(QDir.AllDirs|QDir.Files|QDir.NoDotAndDotDot)
>
> all the directories are shown, and all the files... I want only the
> files
Op den Dingsdag 23 November 2010 Klock 15:04:34 hett Gionata Boccalini
schreven:
> Op!!! the first parameter is the milliseconds!! I thought it was
> the seconds!! Now it is working correctly! ( I know I should have looked
> the docs...)
Indeed, looking at the fine docs is often the solut
Op den Sünnavend 20 November 2010 Klock 07:48:15 hett Phil Thompson schreven:
> Pickling of QObject instances isn't supported because there is so much
> state information (some of which you probably don't have access to) that
> you would need to restore.
Yet pickling QDate, QDateTime, and QString
Op den Dunnersdag 18 November 2010 Klock 20:24:09 hett James Polk schreven:
> Anyways,..I think this is working
> But after adding a new record via addMail(), I can't seem to get
> self.proxyModel to refresh itself..
Each model must emit the right SIGNALs to let views know about needed updates
Op den Middeweken 17 November 2010 Klock 17:42:20 hett dizou schreven:
> I am using a QTreeView and I have sorting enabled. Sorting works great, but
> I want one column to be sorted a specific way that isn't how Qt does it by
> default. I took a look at QSortFilterProxyModel, but this class looks m
Op den Dingsdag 16 November 2010 Klock 19:21:08 hett James Polk schreven:
> I'm trying to figure out how embed a pushButton (with iconic image
> preferrably) in the first column of a TableView (or TreeView in
> QSortFilterProxyModel).
AFAIK, this is exactly what widget delegates are for.
http://
Op den Dingsdag 09 November 2010 Klock 19:34:54 hett Phil Thompson schreven:
> On Tue, 09 Nov 2010 19:25:28 +0100 (CET), Marián Kyral
> > As you can see, labels have assigned FieldRole and fields have assigned
> > LabelRole.
> >
> > self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole
Hi!
Am 05.11.2010 um 15:57 schrieb Gaëtan Podevijn:
> Maybe could you take a look at matplotlib [1] ?
>
> [1] http://matplotlib.sourceforge.net
Oh, good idea - I'll attach some code for embedding MPL plots in PyQt. IIRC
this is just a refactored / more bare-bone version of something I found o
Hi Phil,
I have the personal habit of using __slots__ to explicitly list all "member
variables", i.e. instance attributs my classes have. IIRC, the original
intention behind this was to allow for efficient classes, i.e. ones that do
not have one __dict__ per instance. But as a side effect, th
Hi everybody, hi Phil,
Op den Dunnersdag 28 Oktober 2010 Klock 14:28:16 hett Hans Meine schreven:
> I am about to give up now, but first I want to post my current code again;
> I added some assertions which show an interesting fact which I have no
> explanation for: One assertion fails
Op den Dunnersdag 28 Oktober 2010 Klock 15:08:16 hett Dan Halbert schreven:
> On Thursday, October 28, 2010 8:28am, "Hans Meine" said:
> > I am about to give up now, but first I want to post my current code
> > again; I added some assertions which show an interesting
Hi again!
I am about to give up now, but first I want to post my current code again; I
added some assertions which show an interesting fact which I have no
explanation for: One assertion fails, since I am getting a QModelIndex of my
proxy model in which internalPointer does *not* contain a QMo
Hi Hans-Peter,
thanks for your reply.
Am 27.10.2010 um 22:17 schrieb Hans-Peter Jansen:
> Not here. After fixing the obvious bug in headerData to actually call
> headerData, I get (with needPersistentModelIndex = False):
Yes, headerData() was broken; actually, AFAIK it is not even necessary at
Hi,
I am having lots of crashes with my implementation of a dummy proxy model.
Could someone please look at this and tell me at which point I am being stupid
(and blind) or whether this is a problem with [Py]Qt?
I have attached a stripped down test case that crashes for me (i.e. segfault/
bus
Am Donnerstag 07 Oktober 2010, 16:48:07 schrieb danny:
> One followup question to your response. I can't find a "currentChanged"
> signal, only a "currentChanged" slot. Clearly there is something I am not
> understanding. I overrode QAbstractItemView.currentChanged because that is
> all I could fin
Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati:
> Hello,
> I'm trying to develop a simple application that should do some
> calculation in a multiprocessing process and update a progress bar. I
> have tried to use the signal-slot technology to update the progress bar
> but at the end
Am Donnerstag 07 Oktober 2010, 14:13:29 schrieb Nicola Creati:
> I'm trying to develop a simple application that should do some
> calculation in a multiprocessing process and update a progress bar. [...]
> Thi sis the code i'm using:
There's no __main__ code, is there? I'd be easier for others to
Am Donnerstag 07 Oktober 2010, 00:40:28 schrieb danny:
> My app constructs a tree by drag and drop. When I drop a node, I
> immediately make that node current and edit it's text. The execution order
> seems to selectionChanged, then currentChanged. The activated signal never
> fires at all.
activ
Am Dienstag 05 Oktober 2010, 13:42:45 schrieb Knacktus:
> I think I need to identify the QDockWidget, which had focus when I
> pressed the button. I've tried the following approaches:
>
> 1) qApp.hasFocus() in my "expand_all()" method --> didn't work, gives
> the focus of the button I pressed
Rig
Am Montag 20 September 2010, 15:23:45 schrieb Phil Thompson:
> On Mon, 20 Sep 2010 09:17:09 -0400, Phillip Cloud
> > pyfile = open(self._opts.output, 'wt', encoding='utf8')
> >
> > else:
> > pyfile = open(self._opts.output, 'wt')
>
> Already fixed in current snapshots.
G
Am Donnerstag 16 September 2010, 21:57:07 schrieb Vincent Vande Vyvre:
> If an image is type RAW, (.CR2, .RAF, .3FR, .MRW etc) an image format .tiff
> is automatically created and replace the RAW file. The original file is
> lost.
That does not sound like Qt's fault. Qt allows to register ImageIO
On Tuesday 14 September 2010 14:46:27 Phil Thompson wrote:
> There is no problem with telling lies to SIP, but you have to be
> consistent with those lies. In this case you should add #include
> to Foo's %TypeHeaderCode block.
I see, thanks.
Have a nice day,
Hans
__
On Tuesday 14 September 2010 11:51:09 Phil Thompson wrote:
> wrote:
> > Anyhow, now I found the /Default/ annotation, which is exactly what I
> > want. However, I get compile errors from the generated code; obviously,
> > the above %TypeHeaderCode is not inserted into every file using the above
>
Am Montag 13 September 2010, 15:48:32 schrieb Phil Thompson:
> Hmm - try adding...
>
> typedef unsigned int uint;
>
> to the sip.h in the siplib directory.
Actually, I considered simply putting that into my %ModuleHeaderCode, but
wouldn't that lead to problems when I start #include'ing headers
Hi,
I am trying to compile SIP-exported modules using MSVC2008 instead of
GCC/mingw. A problem arises because SIP silently transforms 'unsigned int'
from my .sip files into 'uint' declarations (e.g. for a0/sipRes) in the
sip*cpp files, and MSVC chokes on that (undeclared type).
(It is probabl
Hi again!
Am Freitag 10 September 2010, 10:21:08 Phil wrote:
> So the template arguments are constant, so don't even bother with a
> template in sip. Just do...
>
> %MappedType UInt16Array4D
> {
> ...
> };
That's what I do, but it's a lot of copy-pasting, since I have different
value_types (8,1
Hi Phil,
Am Donnerstag 09 September 2010, 16:35:00 schrieb Phil Thompson:
> wrote:
> > I was happy when I saw that %MappedType supports templates, but then I
> > realized that I could not use it for my multi-dimensional array type [1]
> > since
> > it does not support non-class arguments (integer
Hi,
I was happy when I saw that %MappedType supports templates, but then I
realized that I could not use it for my multi-dimensional array type [1] since
it does not support non-class arguments (integer dimension in my case).
Would that be hard to fix?
It would be helpful to at least find a wo
Hi,
I have had many problems with exception translation. First of all, it seems
to be an undocumented fact that the exception translation is overwritten by
%MethodCode blocks (i.e. not wrapped around them).
Second, even after enabling exception translation by passing -e and describing
my exce
Hi,
I have successfully been using PyQwt under Windows by using binary packages
for Qt, python, NumPy, SIP, PyQt etc., using the MinGW compiler bundled with
Qt for compilation of PyQwt (and the bundled Qwt).
Now, I need to use the compiler that comes with Visual Studio 2008.
I have successfully
Hi,
I have just uploaded a first release of qimage2ndarray, a tiny python
extension for quickly converting between QImages and numpy.ndarrays
(in both directions). These are very common tasks when programming e.g.
scientific visualizations in Python using PyQt4 as the GUI library.
Similar code
On Dienstag 13 Mai 2008, Aysun Bascetincelik wrote:
> Sorry, I was not sure about attaching files. Here are the files.
Your mistake is simply that you have made "pointToDraw" a class variable, not
an object/instance one (use self.pointToDraw, not MyPoint.pointToDraw). This
is not [Py]Qt related
On Dienstag 13 Mai 2008, Aysun Bascetincelik wrote:
> Here is the code:
> __
>
>
> #!/usr/bin/env python
[snip]
I don't know what the policy for this list is, but if you had attached the
file (and the needed .ui) file, we could have tried your code out. As it is
now, the
Am Freitag, 09. Mai 2008 18:35:25 schrieb Phil Thompson:
> I didn't really understand your explanation, but another approach is to
> #define things on the command line.
Thanks Phil for you suggestion, but this leads to nearly the same problem:
I do not know how to set -D switches for the compiler
Hi,
I am trying to return a numpy array from one of my member functions. I got it
worked out, but I have one remaining, sip-related problem:
As e.g. explained on http://numpy.scipy.org/numpydoc/numpy-13.html, I need to
call import_array() in my module initialization code. I am using
%PostIni
Hi Laura,
On Samstag 12 April 2008, Laura X wrote:
> So, are there PyQt applications/examples on image processing? Using
> PIL or OpenCV? Is it possible to load an AVI file and process the data
> in PyQt?
I am personally using the VIGRA library for image processing, but its python
bindings have
Am Mittwoch, 09. April 2008 13:48:07 schrieben Sie:
> I don't see why this is Offtopic...
Because it is not related to python?
> Anyway, i will try to dig if i could eliminate it with stylesheets (which i
> doub it...)
> I saw Oxygen style from KDE4 does not use rect on buttons for example (i
> c
Am Dienstag, 08. April 2008 15:55:43 schrieb Gustavo A. Díaz:
> And I do care, indeed i do have a tab order in my app... just i wanted to
> eliminate that border (is NOT a bg problem anyway, just a very minor
> detail and wanted to know if it possible).
IMO such things should not be done by an
Hi Kevin!
Am Montag, 07. April 2008 02:11:24 schrieb Kevin Watters:
> But when I change one of the sub SIP files, SIP doesn't recognize that its
> corresponding files need to be regenerated. So the only way I've found to
> recompile is to "touch" the root SIP file, which causes SIP to regen ALL of
Am Freitag, 04. April 2008 13:40:48 schrieb Hans Meine:
> In order to do so, I figured it would be easiest to write a small python
> script that I'll call from QMake's project file:
> | import PyQt4.pyqtconfig, subprocess
> |
> | config = PyQt4.pyqtconfig.Config
Hi,
I am trying to create Python bindings for my VigraQt library, which - among
others - contains a Qt-based image viewer (see
http://kogs-www.informatik.uni-hamburg.de/~meine/software/vigraqt/). In the
past, I have used autotools as a build system, and it was a big hassle to get
sip integrat
50 matches
Mail list logo