[PySide] PySide calls wrong emit() inside class
John Ehresman
jpe at wingware.com
Tue Jul 23 21:06:30 CEST 2013
On 7/23/13 12:36 PM, Robert Schilling wrote:
> Hi Nathan,
>
> Thanks for the answer, but this doesn't work either:
>
> from PySide import QtCore
> from PySide.QtCore import QObject
>
> class Foo(QObject):
> def __init__(self):
> QObject.__init__(self)
> self.sig = QtCore.Signal(str)
>
> def emit(self):
> self.sig.emit("1")
emit() is defined by QObject and you're overriding it here. I suspect
this is not what you intend and you probably want to use a different name.
Cheers,
John
More information about the PySide
mailing list