Re: [PyKDE] automatic slots and subclassing
On Thursday 26 January 2006 6:26 pm, Andreas Pakulat wrote: > Hi, > > another thing I found with automatic slots: It seems they do not work > when subclassing: > > class parentWidget(QtGui.QWidget): > def __init__(self): > QtGui.QWidget.__init__(self) > def on_pushButton_clicked(self, checked = None): > print "tst" > > class myWidget(parentWidget, compileToType("test.ui")): > def __init__(self): > parentWidget.__init__(self) > self.setupUi(self) > > compileToType produces a type from the .ui-file... > > The "slot" on_pushButton_clicked is not called, though the same thing > works in C++. > > Is this also due to some magic stuff moc does, or is this just something > that doesn't work (yet)? Should be fixed in tonight's snapshot. Phil ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] automatic slots and subclassing
Hi, another thing I found with automatic slots: It seems they do not work when subclassing: class parentWidget(QtGui.QWidget): def __init__(self): QtGui.QWidget.__init__(self) def on_pushButton_clicked(self, checked = None): print "tst" class myWidget(parentWidget, compileToType("test.ui")): def __init__(self): parentWidget.__init__(self) self.setupUi(self) compileToType produces a type from the .ui-file... The "slot" on_pushButton_clicked is not called, though the same thing works in C++. Is this also due to some magic stuff moc does, or is this just something that doesn't work (yet)? Andreas -- Your life would be very empty if you had nothing to regret. ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde