Try this way of connecting: self.btn_save.clicked.connect(self.p)
On Tue, Jun 29, 2010 at 3:06 PM, Csaba Toth <[email protected]>wrote: > Hi, > > i have a problem with recent PyQt versions, sometimes a signal (what i > saw was with button click signal) emitted twice. > > for example i use this: > > def p(self, clicked=False): > print('emitted') > self.connect(self.btn_save, QtCore.SIGNAL("clicked(bool)"), self.p) > > and if i press the button it wrotes twice the 'emitted' to console. > What i make wrong? > > thanks in advance, > Csaba > _______________________________________________ > PyQt mailing list [email protected] > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > -- Nick Gaens
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
