On 10/4/2010 5:48 PM, Renato Araujo Oliveira Filho wrote:
Hi Dan,
I wrote this example base on your example, and works very well.
from PySide.QtCore import QObject, Signal
class C(QObject):
sig = Signal()
def foo():
print 2
c = C()
c.sig.connect(foo)
c.sig.emit()
OUTPUT:
# python test.py
2
Which error do you get, when you try connect the signal? Can you send
the python back trace? Which version of pyside are you using?
Sorry, I was not clear in my second email. My second example -does- work
fine, for me too. My first example, which just used a bare call to
Signal(), not in a class, and not using an instance of the class, did
not work. Then I reread the documentation page more carefully and saw I
had to make the Signal() be in a class and be used from an instance.
So I am all set - everything works now.
Thanks,
Dan
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside