Re: [PyQt] Translation of strings with Python formating

2011-01-04 Thread Detlev Offenbach
On Montag, 3. Januar 2011, Nahuel Defossé wrote: Hi I've noticed that both QObject.trUtf8 and QObject.tr do not return Python strings, what is rather unconvinient when using the % operator to format strings. I prefer str % operator since it accepts keyword arguments, something that is not

[PyQt] qdialog, global reference and RuntimeError: underlying C/C++ object has been deleted

2011-01-04 Thread Lists SVR
Hi, I have a dialog that require some time to load, to speed up the things I keep this dialog in memory, so I create it the first time and then I add a global reference, something like this: app_global.mydialog=mydialog and when this variable is populated I do: app_global.mydialog.exec_()

Re: [PyQt] qdialog, global reference and RuntimeError: underlying C/C++ object has been deleted

2011-01-04 Thread Detlev Offenbach
On Dienstag, 4. Januar 2011, Lists SVR wrote: Hi, I have a dialog that require some time to load, to speed up the things I keep this dialog in memory, so I create it the first time and then I add a global reference, something like this: app_global.mydialog=mydialog and when this

Re: [PyQt] qdialog, global reference and RuntimeError: underlying C/C++ object has been deleted

2011-01-04 Thread Lists SVR
Il giorno mar, 04/01/2011 alle 11.05 +0100, Detlev Offenbach ha scritto: On Dienstag, 4. Januar 2011, Lists SVR wrote: Hi, I have a dialog that require some time to load, to speed up the things I keep this dialog in memory, so I create it the first time and then I add a global

[PyQt] PyQt4 snapshot build issue with Qt 4.4.3

2011-01-04 Thread Hans-Peter Jansen
Hi Phil, wishing you a Happy New Year. Starting over right away, current PyQt4 snapshots seem to suffer from a build issue with Qt 4.4.3 resulting in: g++ -c -pipe -march=i586 -mtune=i686 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables

[PyQt] Proposal for QPyNullVariant

2011-01-04 Thread Phil Thompson
The problem... v2 of the QVariant API (the default for Python v3) eliminates QVariant as a Python type. Python objects are converted to and from C++ QVariants automatically as and when required. An invalid C++ QVariant is converted to and from None. The problem is that there is currently no

Re: [PyQt] Proposal for QPyNullVariant

2011-01-04 Thread Hans-Peter Jansen
On Tuesday 04 January 2011, 14:08:11 Phil Thompson wrote: The problem... v2 of the QVariant API (the default for Python v3) eliminates QVariant as a Python type. Python objects are converted to and from C++ QVariants automatically as and when required. An invalid C++ QVariant is converted

Re: [PyQt] Proposal for QPyNullVariant

2011-01-04 Thread Detlev Offenbach
On Dienstag, 4. Januar 2011, Phil Thompson wrote: The problem... v2 of the QVariant API (the default for Python v3) eliminates QVariant as a Python type. Python objects are converted to and from C++ QVariants automatically as and when required. An invalid C++ QVariant is converted to and

Re: [PyQt] Proposal for QPyNullVariant

2011-01-04 Thread Phil Thompson
On Tue, 4 Jan 2011 15:27:33 +0100, Detlev Offenbach det...@die-offenbachs.de wrote: On Dienstag, 4. Januar 2011, Phil Thompson wrote: The problem... v2 of the QVariant API (the default for Python v3) eliminates QVariant as a Python type. Python objects are converted to and from C++

Re: [PyQt] PyQt4 snapshot build issue with Qt 4.4.3

2011-01-04 Thread Phil Thompson
On Tue, 4 Jan 2011 13:35:14 +0100, Hans-Peter Jansen h...@urpla.net wrote: Hi Phil, wishing you a Happy New Year. Starting over right away, current PyQt4 snapshots seem to suffer from a build issue with Qt 4.4.3 resulting in: g++ -c -pipe -march=i586 -mtune=i686 -fmessage-length=0 -O2

Re: [PyQt] Loading from DB: Threading vs. Multiprocessing

2011-01-04 Thread Knacktus
OK, I'll give QThreads a try. Thanks, Erik and Matt. Jan ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QWizard, custom resizing windows

2011-01-04 Thread James Polk
Doug suggested using QWizard for a multi-step process I have going, and it's working quite well, Thanks Doug! But, I'm having a small issue with tweeking the window size as I go thru each step...Unfortunately, the window contents for step 1 are much less than they are for steps 2 and 3, so the

[PyQt] PyQt + Maya - copy/paste issue

2011-01-04 Thread Taylor Carrasco
I'm trying to copy text from Maya's script editor into a PyQt LineEdit (or any text widget for that matter). I've run into an interesting problem. If you run this widget outside Maya, you can copy/paste from Maya, into the line edit just fine. *Clipboard: text from script editor type: class