From: caremoli Date: Fri, 10 Sep 2004 15:17:42 +0000 (+0000) Subject: CCAR: it's safer to specify explicitly that we use C++ SLOT to connect the X-Git-Tag: V2_0_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Ftags%2FV2_1_0;p=samples%2Fpyhello.git CCAR: it's safer to specify explicitly that we use C++ SLOT to connect the buttons to dialog --- diff --git a/src/PYHELLOGUI/PYHELLOGUI.py b/src/PYHELLOGUI/PYHELLOGUI.py index 8f81e8d..5c5c824 100644 --- a/src/PYHELLOGUI/PYHELLOGUI.py +++ b/src/PYHELLOGUI/PYHELLOGUI.py @@ -55,9 +55,9 @@ class MyDialog(qt.QDialog): self.hb = qt.QHBox(self) c = qt.QPushButton("OK", self.hb) - self.connect(c, qt.SIGNAL('clicked()'), self.accept) + self.connect(c, qt.SIGNAL('clicked()'), self, SLOT('accept()')) d = qt.QPushButton("CANCEL", self.hb) - self.connect(d, qt.SIGNAL('clicked()'), self.reject) + self.connect(d, qt.SIGNAL('clicked()'), self, SLOT('reject()')) def ExecPYHELLO(ws): # Modal dialog, parent desktop