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 that
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 of the
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
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
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
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
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 not
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
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, but
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
value, otherwise
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 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
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
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 mky...@email.cz
As you can see, labels have assigned FieldRole and fields have assigned
LabelRole.
self.formLayout.setWidget(0,
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.
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 on
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,
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 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
Op den Dunnersdag 28 Oktober 2010 Klock 15:08:16 hett Dan Halbert schreven:
On Thursday, October 28, 2010 8:28am, Hans Meine me...@informatik.uni-
hamburg.de 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 fact
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, since I am
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/
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.
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, 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 of
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 find. In
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
Right, so
Am Montag 20 September 2010, 15:23:45 schrieb Phil Thompson:
On Mon, 20 Sep 2010 09:17:09 -0400, Phillip Cloud cpcl...@gmail.com
pyfile = open(self._opts.output, 'wt', encoding='utf8')
else:
pyfile = open(self._opts.output, 'wt')
Already fixed in current
On Tuesday 14 September 2010 11:51:09 Phil Thompson wrote:
me...@informatik.uni-hamburg.de 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
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
exception to Foo's %TypeHeaderCode block.
I see, thanks.
Have a nice day,
Hans
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
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 Phil,
Am Donnerstag 09 September 2010, 16:35:00 schrieb Phil Thompson:
me...@informatik.uni-hamburg.de 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
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,16,32
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
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
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
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
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
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.
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
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 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 any
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
cant
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
my
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
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.Configuration()
|
| command
48 matches
Mail list logo