[PyQt] Mixing PyQt and QtScript

2007-11-11 Thread Henning Schröder
Hi, perhaps someone else is interested in my experiments in mixing PyQt with QtScript. It seems nobody else has tried it. At least Google did not found anything. Actually it is easily possible and I can imagine some good use cases for it. You can find my code at

[PyQt] How to close QSqlDatabase connection?

2007-11-11 Thread Sibylle Koczian
Hello, I'm trying to write a very small database application, but I can't get rid of this error message when I close the main window: QSqlDatabasePrivate::removeDatabase: connection 'qt_sql_default_connection' is still in use, all queries will cease to work. At the moment I'm using this code

Re: [PyQt] How to close QSqlDatabase connection?

2007-11-11 Thread Hans-Peter Jansen
Dear Sibylle, I can only talk for PyQt3, through (yes, I'm retro..), but.. Am Sonntag, 11. November 2007 schrieb Sibylle Koczian: Hello, I'm trying to write a very small database application, but I can't get rid of this error message when I close the main window:

[PyQt] ANN: new eric4 snapshot

2007-11-11 Thread Detlev Offenbach
Hi, this is to announce the availability of a new eric 4.1 snapshot release. It fixes a few bugs and includes these new functions. - added an action to stop the running script to the Start menu/toolbar - added a config option for the plugins download directory - added dialog to display the

Re: [PyQt] PyQt speed.

2007-11-11 Thread Vadim Gutnik
On Nov 9, 2007 6:49 PM, David Boddie [EMAIL PROTECTED] wrote: Not at all. It would appear that you've written an example that leaves pretty much all the processing to the underlying framework. I see. I didn't know if there's some slowdown that comes from having to interpret python classes

Re: [PyQt] PyQt speed.

2007-11-11 Thread David Boddie
On Sun Nov 11 23:09:06 GMT 2007, Vadim Gutnik wrote: On Nov 9, 2007 6:49 PM, David Boddie david at boddie.org.uk wrote: I followed the advice given in the task description. The resulting performance is _much_ better - you have to see it to believe it. :-) Wow. Thank you. That's much

[PyQt] Problem with Qt.MouseButtons

2007-11-11 Thread Hernán Rajchert
Hi, i was doing a little game and when using a QGraphicsRectItem with the mousePressEvent i tried to capture the event where the player clicks both left and right click, i've tried the following without luck: def mousePressEvent(self, event): print event.button() #