Re: [PyQt] signal twice emit

2010-07-01 Thread Csaba Toth
Hi! last evening recompiled the program with PyQt 4.6.2 (it has Qt 4.5.3), and today the problem gone, no one complained. Phil, what you think, is it a good idea to compile PyQt 4.6.2+Qt 4.6.3, or PyQt 4.7.3+Qt 4.5.3? Or have a better idea? thanks in advance, Csaba 2010.06.30. 21:28

Re: [PyQt] signal twice emit

2010-07-01 Thread Phil Thompson
On Thu, 01 Jul 2010 19:50:14 +0200, Csaba Toth csaba.t...@i3rendszerhaz.hu wrote: Hi! last evening recompiled the program with PyQt 4.6.2 (it has Qt 4.5.3), and today the problem gone, no one complained. Phil, what you think, is it a good idea to compile PyQt 4.6.2+Qt 4.6.3, or PyQt

Re: [PyQt] signal twice emit

2010-06-30 Thread Csaba Toth
Hi! On Tue, Jun 29, 2010 at 3:06 PM, Csaba Toth wrote: def p(self, clicked=False): print('emitted') self.connect(self.btn_save, QtCore.SIGNAL(clicked(bool)), self.p) Initially, I thought this could be a problem with both the clicked() and the clicked(bool) signals being connected to

[PyQt] signal twice emit

2010-06-29 Thread Csaba Toth
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

Re: [PyQt] signal twice emit

2010-06-29 Thread Nick Gaens
Try this way of connecting: self.btn_save.clicked.connect(self.p) On Tue, Jun 29, 2010 at 3:06 PM, Csaba Toth csaba.t...@i3rendszerhaz.huwrote: 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

Re: [PyQt] signal twice emit

2010-06-29 Thread Csaba Toth
Thanks for the advices, but this happens just with the most recent versions of PyQt, i think it started to appear after i upgradeed to 4.7. I used all versions from the 4.7 era, don't remember if it happened at the early versions, but with the most recent version it does. I use PyQt and QT for 4

Re: [PyQt] signal twice emit

2010-06-29 Thread David Boddie
On Tue Jun 29 18:42:37 BST 2010, Csaba Toth wrote: Thanks for the advices, but this happens just with the most recent versions of PyQt, i think it started to appear after i upgradeed to 4.7. I used all versions from the 4.7 era, don't remember if it happened at the early versions, but with