Back to index

salome-gui  6.5.0
Classes | Functions | Variables
GUI_PY.genericdialog Namespace Reference

Classes

class  GenericDialog

Functions

def TEST_GenericDialog

Variables

string __author__ = "gboulant"
string __date__ = "$31 mars 2010 17:09:53$"

Function Documentation

Definition at line 114 of file genericdialog.py.

00114 
00115 def TEST_GenericDialog():
00116     import sys
00117     from PyQt4.QtGui import QApplication
00118     from PyQt4.QtCore import QObject, SIGNAL, SLOT
00119     app = QApplication(sys.argv)
00120     QObject.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
00121 
00122     dlg=GenericDialog()
00123     dlg.displayAndWait()
00124     if dlg.wasOk():
00125         print "OK has been pressed"
00126     else:
00127         print "Cancel has been pressed"
        

Variable Documentation

string GUI_PY.genericdialog.__author__ = "gboulant"

Definition at line 21 of file genericdialog.py.

string GUI_PY.genericdialog.__date__ = "$31 mars 2010 17:09:53$"

Definition at line 22 of file genericdialog.py.