hello,

running the attached code snippet the result is as follows:
2destroyed(QObject*)
2aSignal()

i'd like to ask what are those '2'-s at the start of the strings for?
the result is the same if i'd just print out SIGNAL('aSignal()').
probably a stupid question but i'd like to understand how things work.

PyQt version: 4.7.3
Qt version: 4.6.2
Python version: 2.6.5

thx
Zoltan
from PyQt4.QtCore import QObject, pyqtSignal, SIGNAL

class ObjectOne(QObject):
    aSignal = pyqtSignal()

    def __init_(self):
        super(ObjectOne, self).__init__()

    def connectNotify(self, signal):
        print signal
        
class ObjectTwo(QObject):

    def __init_(self):
        super(ObjectTwo, self).__init__()

    def foo(self):
        pass

obj1 = ObjectOne()
obj2 = ObjectTwo()
obj1.aSignal.connect(obj2.foo)
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to