[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] automatic slots and subclassing
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2006-01-27 19:31:54
Message-ID: 200601271931.54884.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

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 list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic