[PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-21 Thread Diez B. Roggisch
Hi, well, the subject pretty much says it. The below code exectutes fine in the debugger until it reaches the line irr::video::S3DVertex *vertex = (irr::video::S3DVertex *)sipConvertToInstance(py_vertex, S3DVertexType, NULL, SIP_NOT_NONE, NULL, err); where err then gets some seemingly

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-21 Thread Phil Thompson
On Tue, 21 Jul 2009 09:26:39 +0200, Diez B. Roggisch de...@web.de wrote: Hi, well, the subject pretty much says it. The below code exectutes fine in the debugger until it reaches the line irr::video::S3DVertex *vertex = (irr::video::S3DVertex *)sipConvertToInstance(py_vertex,

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-21 Thread Diez B. Roggisch
On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: On Tue, 21 Jul 2009 09:26:39 +0200, Diez B. Roggisch de...@web.de wrote: Hi, well, the subject pretty much says it. The below code exectutes fine in the debugger until it reaches the line irr::video::S3DVertex *vertex =

Re: [PyQt] sipConvertToInstance failing after sipCanConvertToInstance succeeds.

2009-07-21 Thread Phil Thompson
On Tue, 21 Jul 2009 11:07:19 +0200, Diez B. Roggisch de...@web.de wrote: On Tuesday 21 July 2009 10:43:14 Phil Thompson wrote: On Tue, 21 Jul 2009 09:26:39 +0200, Diez B. Roggisch de...@web.de wrote: Hi, well, the subject pretty much says it. The below code exectutes fine in the

[PyQt] remove quotes from QSqlTableModel.selectstatement

2009-07-21 Thread Ivan Coronado
Hello I'm using PyQt ODBC support to access a database. If I use QSqlQuery works fine, but when I use QSqlTableModel the table is filled by the names of collums. An example here: exp_1exp_2exp_3exp_4 namedatetime cheked namedatetime cheked name

Re: [Eric] [PyQt] SOLVED Failure to install Eric ...

2009-07-21 Thread Serge Montagnac
James Oakley wrote: On Saturday 18 July 2009 13:15:01 you wrote: James Oakley wrote: On Friday 17 July 2009 07:30:37 Serge Montagnac wrote: Hi Detlev, [r...@dualstar eric4-4.3.5]# python install.py An internal error occured. Please report all the output of the program,

[PyQt] Odd behaviour in QFileDialog.getOpenFileNames on Linux

2009-07-21 Thread Jens Nie
Hi all. I am working on a little helper for my job management system to insert jobs into it using a PyQt GUI that should be usable on both windows and linux. I came over a rather odd behavior for the QFileDialog.getOpenFileNames method when running that helper under linux. Selecting a file

[PyQt] Odd behaviour in QFileDialog.getOpenFileNames on Linux II

2009-07-21 Thread Jens Nie
Hi all. I forgot to mention the PyQt Version i use: It's 4.4.3 on both windows and linux. Windows Version is shipped with the python(x,y) distribution. The linux version is shipped with the opensuse 11.1 distribution. Jens ___ PyQt mailing list

[PyQt] SIP feature request

2009-07-21 Thread Giovanni Bajo
Hello, in complex projects using several inter-dependent sip modules, it's getting harder and harder to correctly track dependencies so that the minimum set of libraries is rebuilt. It would be very useful if sip had an option to dump the list of .sip files that are being parsed (through

Re: [PyQt] SIP feature request

2009-07-21 Thread Phil Thompson
On Tue, 21 Jul 2009 18:07:07 +0200, Giovanni Bajo ra...@develer.com wrote: Hello, in complex projects using several inter-dependent sip modules, it's getting harder and harder to correctly track dependencies so that the minimum set of libraries is rebuilt. It would be very useful if sip

Re: [PyQt] SIP feature request

2009-07-21 Thread Giovanni Bajo
On Tue, 2009-07-21 at 17:18 +0100, Phil Thompson wrote: On Tue, 21 Jul 2009 18:07:07 +0200, Giovanni Bajo ra...@develer.com wrote: Hello, in complex projects using several inter-dependent sip modules, it's getting harder and harder to correctly track dependencies so that the minimum

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-21 Thread Brent Villalobos
Thanks. I had a feeling that python's GIL (global interpreter lock) would be a limiting factor. I worked around my performance issue by doing some smarting caching to avoid some of the more intensive operations. But for the sake of argument, suppose I couldn't rework my algorithms. From

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-21 Thread David Boddie
On Tue Jul 21 17:34:38 BST 2009, Brent Villalobos wrote: Thanks. I had a feeling that python's GIL (global interpreter lock) would be a limiting factor. I worked around my performance issue by doing some smarting caching to avoid some of the more intensive operations. But for the sake of

[PyQt] QTreeWidget itemAt question

2009-07-21 Thread Scott Frankel
Hello, What's the proper way to use QTreeWidget's itemAt() method? I'm passing incrementing int values to it, yet it only returns the tree's root item. eg: for ii in range(self.treeRowCount): item = self.theTree.itemAt(0, ii) yields: ii:

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-21 Thread Brent Villalobos
Thanks for the inquires. Like I said before, I've worked around my performance issues. Now this is only a curiosity for future projects. See my comments below. David Boddie wrote: It's not obvious from your description of the problem that the GIL is the main cause, though it may be - it

Re: [PyQt] GUI freezing when running large function in QThread

2009-07-21 Thread David Boddie
On Tuesday 21 July 2009, Brent Villalobos wrote: Thanks for the inquires. Like I said before, I've worked around my performance issues. Now this is only a curiosity for future projects. See my comments below. David Boddie wrote: It's not obvious from your description of the problem

[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Darren Dale
On Tue, Jul 21, 2009 at 12:06 PM, Lukas Hetzeneckerl...@gmx.at wrote: Sorry for annoying you, but I attatched a new example to this message: I've rewritten the PyQt4-example from the website to draw the Figure in a tab widget. The same happens ;) In your original post, you said: the widget in

[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Lukas Hetzenecker
Hello, the matplotlib widget has an incorrect default size (the left one in the attatched screenshot). I couldn't reproduce this behaviour with any Qt widget - so it seems that this is specific to matplotlib. But as I'm not really sure of the cause I posted it to both lists. Lukas Am Dienstag

[PyQt] regression from 4.4.x to 4.5.x when passing enum arguments?

2009-07-21 Thread Gerard Vermeulen
Phil, I have the following SIP specification : class QwtScaleTransformation { %TypeHeaderCode #include qwt_scale_map.h %End // %TypeHeaderCode public: enum Type { Linear, Log10, Other }; // enum Type QwtScaleTransformation(QwtScaleTransformation::Type);

[PyQt] Which QStyle

2009-07-21 Thread Mads Ipsen
How do I programatically determine which style I am using, i.e. whether it's QWindowsStyle, QMacStyle, QMotifStyle etc. -- ++ | Mads Ipsen, Ph.D, Scientific software developer|

Re: [PyQt] Which QStyle

2009-07-21 Thread Matt Newell
On Tuesday 21 July 2009 13:46:09 Mads Ipsen wrote: How do I programatically determine which style I am using, i.e. whether it's QWindowsStyle, QMacStyle, QMotifStyle etc. style = QApplication.instance().style() print style.metaObject().className() Matt

Re: [PyQt] QTreeWidget itemAt question

2009-07-21 Thread Doug Bell
Scott Frankel wrote: Hello, What's the proper way to use QTreeWidget's itemAt() method? I'm passing incrementing int values to it, yet it only returns the tree's root item. eg: for ii in range(self.treeRowCount): item = self.theTree.itemAt(0,

Re: [PyQt] regression from 4.4.x to 4.5.x when passing enum arguments?

2009-07-21 Thread Phil Thompson
On Tue, 21 Jul 2009 22:09:09 +0200, Gerard Vermeulen gav...@gmail.com wrote: Phil, I have the following SIP specification : class QwtScaleTransformation { %TypeHeaderCode #include qwt_scale_map.h %End // %TypeHeaderCode public: enum Type { Linear, Log10,

Re: [PyQt] QTreeWidget itemAt question

2009-07-21 Thread Scott Frankel
On Jul 21, 2009, at 2:24 PM, Doug Bell wrote: The poblem is that itemAt() returns what is at the given view coordinate, not by row numbers. That explains it. Ultimately, I want to be able to identify a QTreeWidgetItem by the results of its text() so that I can set the tree item's parent