On Sunday 18 December 2005 6:33 pm, Baz Walter wrote: > Hello > > When disconnecting a signal from a python slot, if the connection has not > already been made, it produces the error: 'RuntimeError: Slot hasn't been > connected'. However, QObject.disconnect gives a boolean result on > success/failure. So is this error really necessary? (With unconnected qt > slots, disconnect just returns false).
I'll take a look at that. > Also, given that PYSIGNAL has been removed from PyQt4, would it now make > sense to support the full SIGNAL/SLOT syntax for python member functions? > That is, if MyCustomClass emits a "stuffHappened" signal, should it be > possible to connect it to MyCustomClass.handleStuff() like this: > > self.connect(self, QtCore.SIGNAL("stuffHappened"), > self, QtCore.SLOT("handleStuff")) > > This syntax isn't all sugar. It's also more flexible if the receiver object > and the slot can be passed independantly. I don't see how that's more flexible. Phil _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde