Back to index

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

Classes

class  PluginDialog

Functions

def getDialog
def TEST_PluginDialog

Variables

list gui_states = ["CAN_SELECT", "CAN_COMPUTE", "CAN_REFRESH", "CAN_PUBLISH"]
list run_states = ["CREATED", "IN_PROCESS", "QUEUED", "RUNNING", "PAUSED"]
list end_states = ["FINISHED", "ERROR"]
 all_states = run_states+end_states;
string resource_name = "localhost"

Function Documentation

This function returns a singleton instance of the plugin dialog. 

Definition at line 375 of file plugindialog.py.

00375 
00376 def getDialog():
00377     """
00378     This function returns a singleton instance of the plugin dialog. 
00379     """
00380     global __dialog
00381     if __dialog is None:
00382         __dialog = PluginDialog()
00383     return __dialog
00384 
00385 #
00386 # ==============================================================================
00387 # Basic use cases and unit test functions
00388 # ==============================================================================
#

Definition at line 389 of file plugindialog.py.

00389 
00390 def TEST_PluginDialog():
00391     import sys
00392     from PyQt4.QtGui import QApplication
00393     from PyQt4.QtCore import QObject, SIGNAL, SLOT
00394     app = QApplication(sys.argv)
00395     QObject.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()"))
00396 
00397     dlg=PluginDialog()
00398     dlg.exec_()


Variable Documentation

Definition at line 47 of file plugindialog.py.

list spadderpy.gui.plugindialog.end_states = ["FINISHED", "ERROR"]

Definition at line 46 of file plugindialog.py.

list spadderpy.gui.plugindialog.gui_states = ["CAN_SELECT", "CAN_COMPUTE", "CAN_REFRESH", "CAN_PUBLISH"]

Definition at line 43 of file plugindialog.py.

Definition at line 53 of file plugindialog.py.

list spadderpy.gui.plugindialog.run_states = ["CREATED", "IN_PROCESS", "QUEUED", "RUNNING", "PAUSED"]

Definition at line 45 of file plugindialog.py.