]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/GUI_PY/mytestdialog.py
Salome HOME
[PYTHON 3] 1st draft
[modules/gui.git] / src / GUI_PY / mytestdialog.py
index 2c975c11315c64e80e7e49fcc5764b38f143ceb5..c03fbb299153ebd2badf986f3becff36aead1790 100644 (file)
@@ -22,7 +22,7 @@ __author__="gboulant"
 __date__ ="$31 mars 2010 17:09:53$"
 from qtsalome import *
 from mytestdialog_ui import Ui_MyTestDialog
-from genericdialog import GenericDialog
+from .genericdialog import GenericDialog
 
 class MyTestDialog(GenericDialog):
     """
@@ -115,12 +115,12 @@ def TEST_MyTestDialog_modal():
     dlg.displayAndWait()
     if dlg.wasOk():
         name = dlg.getData()
-        print "The name has been modified to",name
+        print("The name has been modified to",name)
 
 
 class DialogListener:
     def onProcessEvent(self):
-        print "onProcessEvent(): OK has been pressed"
+        print("onProcessEvent(): OK has been pressed")
         import sys
         sys.exit(0)