Salome HOME
projects
/
samples
/
pyhello.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CCAR: it's safer to specify explicitly that we use C++ SLOT to connect the
[samples/pyhello.git]
/
src
/
PYHELLOGUI
/
PYHELLOGUI.py
diff --git
a/src/PYHELLOGUI/PYHELLOGUI.py
b/src/PYHELLOGUI/PYHELLOGUI.py
index 8f81e8d4bc620bae1c89b2dfdc7e433e2c148612..5c5c8245caee4bb1ffd9b9d827a119a822a7f7c3 100644
(file)
--- 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.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)
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
def ExecPYHELLO(ws):
# Modal dialog, parent desktop