Beispiel #1
0
 def __init__(self, argv:list):
     QApplication.__init__(self, argv)
     # Load configs and styles
     self.load_configs()
     self.load_style()
     self.setWindowIcon(QIcon(":/images/icon.png"))
     # Create the mainwindow
     self.window = MainWindow()
Beispiel #2
0
 def __init__(self, renderer, title):
     QApplication.__init__(self, sys.argv)
     self.window = QMainWindow()
     self.window.setWindowTitle(title)
     self.window.resize(800,600)
     # Get OpenGL 4.1 context
     glformat = QGLFormat()
     glformat.setVersion(4, 1)
     glformat.setProfile(QGLFormat.CoreProfile)
     glformat.setDoubleBuffer(False)
     self.glwidget = MyGlWidget(renderer, glformat, self)
     self.window.setCentralWidget(self.glwidget)
     self.window.show()
Beispiel #3
0
 def __init__(self, argv):
     QApplication.__init__(self, argv)
     self.mainwidget = SandyScreen(self)
     sys.exit(self.exec_())
Beispiel #4
0
    def __init__(self, argv):

        QApplication.__init__(self, argv)

        self.window = MainWindow()
        self.window.show()
Beispiel #5
0
 def __init__(self, *args, **kwargs):
     QApplication.__init__(self, *args)
     self.mainwindow = MainWindow()
     self.mainwindow.show()
Beispiel #6
0
 def __init__(self, blockDevice, baudRate):
   QApplication.__init__(self, sys.argv)
   self.radio = Radio(blockDevice, baudRate)