Re: [PyQt] Possible bug with new signal-slot connection

2012-05-18 Thread Detlev Offenbach
Am Donnerstag, 17. Mai 2012, 22:27:32 schrieb Hans-Peter Jansen: On Wednesday 16 May 2012, 22:21:05 Phil Thompson wrote: So the rule is that if you make a connection old style then you must disconnect old style as well and the same for new style. You also need to be aware that pyuic4 uses

Re: [PyQt] Possible bug with new signal-slot connection

2012-05-16 Thread Hans-Peter Jansen
Hi Alexander, Am Tuesday 15 May 2012 16:34:05 schrieb Alexander Bruy: Hi all, I try to use new style for signal-slot connection [0] in my project. And have one problem that looks like bug in PyQt. There is a dialog window with QDialogButtonBox, which has two buttons OK and Close. During

Re: [PyQt] Possible bug with new signal-slot connection

2012-05-16 Thread Alexander Bruy
Hi Pete, thanks for answer, but I need both slots: reject() and custom slot. Also even if I reimplement reject() this incompatibility between old and new style for signal-slot connection remains. Main question is not my code but this incompatibility 2012/5/16 Hans-Peter Jansen h...@urpla.net:

Re: [PyQt] Possible bug with new signal-slot connection

2012-05-16 Thread Phil Thompson
On Tue, 15 May 2012 17:34:05 +0300, Alexander Bruy alexander.b...@gmail.com wrote: Hi all, I try to use new style for signal-slot connection [0] in my project. And have one problem that looks like bug in PyQt. There is a dialog window with QDialogButtonBox, which has two buttons OK and

Re: [PyQt] Possible bug with new signal-slot connection

2012-05-16 Thread Alexander Bruy
Hi Phil, many thanks for detailed explanation. You are right making significant changes in old code that can break compatibility or stability is no good. But it will good to add this explanation to documentation. 2012/5/16 Phil Thompson p...@riverbankcomputing.com: This is what's happening...

[PyQt] Possible bug with new signal-slot connection

2012-05-15 Thread Alexander Bruy
Hi all, I try to use new style for signal-slot connection [0] in my project. And have one problem that looks like bug in PyQt. There is a dialog window with QDialogButtonBox, which has two buttons OK and Close. During the program execution I need to change behavior of Close button: pressing this