python desktop
Maurizio Colucci
look at in.signature
Tue Jul 6 16:32:27 EDT 2004
Ville Vainio wrote:
> """
> axp:/home/ville/prj/logicaldesktop# python logicaldesktop.py
> Traceback (most recent call last):
> File "logicaldesktop.py", line 2975, in ?
> selectedLabel = FlashingLabel('This text will change', selectedHBox)
> File "logicaldesktop.py", line 212, in __init__
> QPushButton.__init__(self, text, parent)
> TypeError: unbound method __init__() must be called with QPushButton
> instance as first argument (got FlashingLabel instance instead) """
Ok, fixed in CVS. :-) But the change should take a while to appear on
anonymous CVS. If you want to run it now, you just need to replace
QPushButton.__init__ with QLabel.__init__.
By the way, I still don't understand why the code was working perfectly on
my machine:
class FlashingLabel(QLabel):
def __init__(self, text, parent):
QPushButton.__init__(self, text, parent)
???
--
Best Regards,
Maurizio Colucci
Please remove the uppercase letters "S,P,A,M":
seSgPuAsMo.forever at tin.it
More information about the Python-list
mailing list