[PyQt] pyqt signal and slot
Phil Thompson
phil at riverbankcomputing.com
Tue May 31 10:08:23 BST 2016
On 31 May 2016, at 9:48 am, lucaberto at libero.it wrote:
>
> 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
http://pyqt.sourceforge.net/Docs/PyQt5/signals_slots.html#connecting-disconnecting-and-emitting-signals
Phil
More information about the PyQt
mailing list