Beispiel #1
0
 def GUIInit(self):
     self.app = QtWidgets.QApplication.instance()
     while self.app is None:  # TODO : remove this
         try:
             self.app = QtWidgets.QApplication(sys.argv)
             break
         except:
             continue
     self.QMainWindow = QtWidgets.QMainWindow()
     self.view = mainWindow()
     self.view.setupUi(self.QMainWindow, self)
     self.QMainWindow.show()
     self.app.exec_()
Beispiel #2
0
def hideWindow(self):
    self.window = QtWidgets.QMainWindow()