Re: [PyQt] [ubuntu 9.10] compiling pyqt4

2010-02-20 Thread David Wolfe
On 2/19/2010 9:56 AM, David Wolfe wrote: On 2/6/2010 8:19 PM, Michael musset wrote: hi, here is what i get after compiling : /usr/bin/ld: cannot find -lqpycore collect2: ld returned 1 exit status make[1]: *** [QtCore.so] Error 1 make[1]: Leaving directory `/home/micka/PyQt-x11-gpl-snapshot

Re: [PyQt] [ubuntu 9.10] compiling pyqt4

2010-02-19 Thread David Wolfe
On 2/6/2010 8:19 PM, Michael musset wrote: hi, here is what i get after compiling : /usr/bin/ld: cannot find -lqpycore collect2: ld returned 1 exit status make[1]: *** [QtCore.so] Error 1 make[1]: Leaving directory `/home/micka/PyQt-x11-gpl-snapshot-4.7.1-c591dc61687c/QtCore' make: ***

[PyQt] QAbstractSpinBox.fixup() error

2010-02-16 Thread David Wolfe
Hi, all. Been a bit confused recently by the behavior of QAbstractSpinBox.fixup(). I have a class that derives from QSpinBox with the goal of ensuring that the user only enters integers whose last two digits form a number between 0 and 31, inclusive. For example, 19900 is valid, as is 19931;

Re: [PyQt] QAbstractSpinBox.fixup() error

2010-02-16 Thread David Wolfe
I thought I could do 'final' validation by overriding fixup(), but I keep seeing the following error in the console: TypeError: invalid result type from IdSpinBox.fixup() The input is a mutable QString. Your normalize_id() function needs to modify the QString it is passed. Thanks, Phil,

Re: [PyQt] make an icon disabled while keeping it checked

2009-06-17 Thread David Wolfe
It seems that it is impossible to keep an icon checked and make it disabled with the styles other than the Windows one... Your example worked fine for me in all styles using PyQt 4.5 from Riverbank's binary installer on Windows (Vista Home Premium). The blue icon remained checked while

Re: [PyQt] Empty style sheet changes QLineEdit

2009-06-17 Thread David Wolfe
On 6/12/2009 2:32 AM, Mads Ipsen wrote: * Try to enter a 'g' in the example included below. The lower part of the 'g' will be invisible... FWIW, I can't reproduce this behavior using Riverbank's binary installer for PyQt4.5 (bundles Qt4.5.1) on Windows Vista Home Premium. I type a 'g' in the

[PyQt] PyQt 4.5 and Python 2.4

2009-06-14 Thread David Wolfe
I've been developing an app using PyQt 4.5, Qt 4.5.1 and Python 2.5, but I recently learned that the target machine has Python 2.4 installed, along with a whole stack of dbus/avahi bindings my app needs. I'm not married to Python 2.5, but wanted to ask: can I use PyQt 4.5 with Python 2.4? Does