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 the program execution I need to change behavior > of Close button: pressing this button should not close the dialog but > invoke another slot.
Apart from your issue, consider to subclass QDialog and reimplement reject to conditionally do what you want without continuously fiddling with {dis,}connect. Pete _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt