Re: [PyQt] QVariant conversion toInt()

2008-07-27 Thread Phil Thompson
On Sat, 26 Jul 2008 19:51:55 -0600, lj [EMAIL PROTECTED] wrote: Given this small snip: from PyQt4.QtCore import * from PyQt4.QtGui import * qv = QVariant(255) print qv.canConvert(QVariant.Int) #prints True, can be converted x = qv.toInt()# so attempt the conversion

Re: [PyQt] QVariant conversion toInt()

2008-07-27 Thread Andreas Pakulat
On 26.07.08 19:51:55, lj wrote: Given this small snip: from PyQt4.QtCore import * from PyQt4.QtGui import * qv = QVariant(255) print qv.canConvert(QVariant.Int) #prints True, can be converted x = qv.toInt()# so attempt the conversion print type(x), x

Re: [PyQt] PyQt and linux signals

2008-07-27 Thread Strato
Thanks for your answer, but some precison: in pyqt3 (maybe also in pyqt4), when the signal is sent, the application will not be immediately affected by it (in my application at least). the application have to trigger an event loop to be affected by the signal. I had to implement a QTimer

Re: [PyQt] PyQt and linux signals

2008-07-27 Thread Christoph Burgmer
Am Sonntag, 27. Juli 2008 schrieb Strato: in pyqt3 (maybe also in pyqt4), when the signal is sent, the application will not be immediately affected by it (in my application at least). 'My solution' works for PyQt4. the application have to trigger an event loop to be affected by the signal.

Fwd: Re: [PyQt] QVariant conversion toInt()

2008-07-27 Thread Christoph Burgmer
For reference again now to the list, though this has been answered already. -- Weitergeleitete Nachricht -- Subject: Re: [PyQt] QVariant conversion toInt() Date: Sonntag, 27. Juli 2008 From: Christoph Burgmer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Am Sonntag, 27. Juli 2008

Re: [PyQt] Are QThreads compatible with python's threading.RLock?

2008-07-27 Thread Darren Dale
On Saturday 26 July 2008 03:48:53 you wrote: On Fri, 25 Jul 2008 17:41:22 -0400, Darren Dale [EMAIL PROTECTED] wrote: I use a library that provides rudimentary thread safety of its objects and file I/O using threading.RLock from the python standard library. Could anyone tell me if

Re: [PyQt] Are QThreads compatible with python's threading.RLock?

2008-07-27 Thread Phil Thompson
On Sun, 27 Jul 2008 08:55:02 -0400, Darren Dale [EMAIL PROTECTED] wrote: On Saturday 26 July 2008 03:48:53 you wrote: On Fri, 25 Jul 2008 17:41:22 -0400, Darren Dale [EMAIL PROTECTED] wrote: I use a library that provides rudimentary thread safety of its objects and file I/O using

Re: [PyQt] QVariant conversion toInt()

2008-07-27 Thread lj
Thanks for your responses. I've read and re-read the doc. But at the risk of being labeled as a Language Lawyer, junior grade, I guess the correct way to retrieve ones int from a QVariant is something like this? from PyQt4.QtCore import * from PyQt4.QtGui import * qv = QVariant(255) # qv

Re: [PyQt] QVariant conversion toInt()

2008-07-27 Thread Christoph Burgmer
Am Sonntag, 27. Juli 2008 schrieb lj: Thanks for your responses. I've read and re-read the doc. But at the risk of being labeled as a Language Lawyer, junior grade, I guess the correct way to retrieve ones int from a QVariant is something like this? from PyQt4.QtCore import * from

Re: [PyQt] QVariant conversion toInt()

2008-07-27 Thread Andreas Pakulat
On 27.07.08 09:23:48, lj wrote: And furthermore I read where string can be converted to just about everything... except Point, Rect and Size so to check I ran the script below. qv = QVariant(QString(255)) # qv contains QString 255 print \n Expect False print

[PyQt] PyKDE4 on MacOS 10.4: sip failed to compile sip/kdecore/typedefs.sip

2008-07-27 Thread Tadeusz Andrzej Kadłubowski
Hello, I tried to compile latest PyKDE4 on MacOS 10.4. I have quite latest (week old?) KDE4 compiled from source. Below is a relevant log message with error. Hope it helps. Should you need any more information - just ask. Best regards, -- tadeusz andrzej kadłubowski

[PyQt] Slow editor

2008-07-27 Thread Juan Pablo Romero Méndez
Hello, It seems that with eric4 version 4.1.6 the editor is very slow. Perhaps I have some incompatibility among versions? Python: 2.5.1 Qt: 4.4.0 PyQt: 4.4.2 sip: 4.7.6 QScintilla: 2.2 eric4: 4.1.6 (r2290) Regards, Juan Pablo ___ PyQt mailing list

[PyQt] Wrap C++ QWidget Subclass for use in PyQt4

2008-07-27 Thread Tyler Distad
I am attempting to use this subclass of QWidget in a Python program: http://code.google.com/p/pictureflow/ I'm also willing to substitute this custom widget: http://www.qt-apps.org/content/show.php/QCoverFlow?content=73404 Both of these widgets are written in C++. Is there any way to access one