Back to index

salome-smesh  6.5.0
Classes | Functions | Variables
spadderpy.gui.inputdialog Namespace Reference

Classes

class  InputDialog

Functions

def TEST_InputDialog
def TEST_InputDialog_setData

Variables

 DEBUG_MODE = True
int GROUPNAME_MAXLENGTH = 8

Function Documentation

Definition at line 334 of file inputdialog.py.

00334 
00335 def TEST_InputDialog():
00336     import sys
00337     from PyQt4.QtCore import QObject, SIGNAL, SLOT
00338     from PyQt4.QtGui import QApplication
00339     app = QApplication(sys.argv)
00340     QObject.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
00341 
00342     dlg=InputDialog()
00343     dlg.displayAndWait()
00344     if dlg.wasOk():
00345         print "OK has been pressed"

Definition at line 346 of file inputdialog.py.

00346 
00347 def TEST_InputDialog_setData():
00348     import sys
00349     from PyQt4.QtCore import QObject, SIGNAL, SLOT
00350     from PyQt4.QtGui import QApplication
00351     app = QApplication(sys.argv)
00352     QObject.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
00353 
00354     dlg=InputDialog()
00355 
00356     from inputdata import InputData
00357     inputData = InputData()
00358     inputData.meshName   = "myMesh"
00359     inputData.meshObject = None
00360     inputData.meshType   = InputData.MESHTYPES.CONCRETE
00361     inputData.groupName  = "myGroup"
00362     listInputData = []
00363     listInputData.append(inputData)
00364     
00365     dlg.setData2(listInputData)
00366     
00367     dlg.displayAndWait()
00368     if dlg.wasOk():
00369         print "OK has been pressed"
00370         outputListInputData = dlg.getData2()
00371         print outputListInputData
00372 


Variable Documentation

Definition at line 39 of file inputdialog.py.

Definition at line 40 of file inputdialog.py.