[PyQt] pyqt signal and slot

lucaberto at libero.it lucaberto at libero.it
Tue May 31 09:48:48 BST 2016


Hello i have a problem to connect signal and slot in pyqt5
in pyqt4 i have two class
from class_two import Class_two
Class_one()   self.c2 = Class_two()   self.connect(self.c2,QtCore.SIGNAl('my_sig'), self.mydef)    def mydef(self):     print('activated')
Class_two ()
    def mydef2(self)      self.emit(QtCore.SIGNAL('my_sig'))
How i can do the same in pyqt5
Many Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160531/f402fd5c/attachment.html>


More information about the PyQt mailing list