[BangPypers] PyQt Query

Nitin Kumar nitin.nitp at gmail.com
Sun Nov 23 14:29:59 CET 2014


code:

        QtCore.QObject.connect(self.pushButton,
QtCore.SIGNAL(_fromUtf8("clicked()")), self.xyz)
        QtCore.QMetaObject.connectSlotsByName(DeviceConnect)

    def xyz(self):
        print 'pqr'

when pushButton is clicked xyz is not getting called. but if i put xyz
function outside class it gets called.

Any Idea?

Nitin K


More information about the BangPypers mailing list