Salome HOME
merge with master
[tools/sat.git] / data / templates / PythonComponent8 / src / StandAlone / StandalonePYCMPGUI.py
diff --git a/data/templates/PythonComponent8/src/StandAlone/StandalonePYCMPGUI.py b/data/templates/PythonComponent8/src/StandAlone/StandalonePYCMPGUI.py
new file mode 100755 (executable)
index 0000000..45be4e9
--- /dev/null
@@ -0,0 +1,21 @@
+import sys
+
+from PyQt5.QtCore    import *
+from PyQt5.QtGui     import *
+from PyQt5.QtWidgets import *
+
+from Controller import Controller
+from Desktop import Desktop
+
+def main( args ) :
+    Appli = QApplication( args )
+    MainFrame = Desktop()
+    myController = Controller( MainFrame )
+    MainFrame.setController( myController )
+    MainFrame.show()
+    Appli.exec_()
+
+if __name__ == "__main__" :
+   main( sys.argv )
+   pass
+