Salome HOME
projects
/
modules
/
gui.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'V8_3_0a2' into ngr/python3_dev
[modules/gui.git]
/
src
/
GUI_PY
/
genericdialog.py
diff --git
a/src/GUI_PY/genericdialog.py
b/src/GUI_PY/genericdialog.py
index 0fea2f25b65e76cf48d766a4bff8bee48fc7828d..8b8be1710647544dad229a77e2ddf3bcc7e11ae2 100644
(file)
--- a/
src/GUI_PY/genericdialog.py
+++ b/
src/GUI_PY/genericdialog.py
@@
-1,5
+1,5
@@
# -*- coding: iso-8859-1 -*-
# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2010-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2010-201
6
CEA/DEN, EDF R&D, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-113,16
+113,16
@@
class GenericDialog(QDialog):
#
def TEST_GenericDialog():
import sys
#
def TEST_GenericDialog():
import sys
- from qtsalome import QApplication
, Connect
+ from qtsalome import QApplication
app = QApplication(sys.argv)
app = QApplication(sys.argv)
-
Connect(app, "lastWindowClosed()", app, "quit()"
)
+
app.lastWindowClosed.connect(app.quit
)
dlg=GenericDialog()
dlg.displayAndWait()
if dlg.wasOk():
dlg=GenericDialog()
dlg.displayAndWait()
if dlg.wasOk():
- print
"OK has been pressed"
+ print
("OK has been pressed")
else:
else:
- print
"Cancel has been pressed"
+ print
("Cancel has been pressed")
if __name__ == "__main__":
TEST_GenericDialog()
if __name__ == "__main__":
TEST_GenericDialog()