def __init__(self, argv):
        '''
        Constructor
        '''
        super().__init__(argv)

        #initalize sysout logging
        QtCore.qInstallMessageHandler(MainApplication.qt_message_handler)

        #set log level
        logging.basicConfig(level=logging.DEBUG)

        #set the skin
        self.loadSkin()

        #Create the MainController
        self.mainController = MainController()

        # Create the Main Window
        self.mainWindow = MainWindow()
Beispiel #2
0
def main():

    #TODO: create standalone exe and liberate it
    configFilePath = '..\\persistence\\config\\'
    configFileName = 'config.json'
    defaultLaserJobsFilePath = '..\\persistence\\data\\'
    defaultLaserJobsFileName = 'defaultLaserJobsFile.xlsx'

    lc = LogicController(configFilePath, configFileName,
                         defaultLaserJobsFilePath, defaultLaserJobsFileName)

    gc = GuiController()

    # ('#0','jobID',10) #0 es el id de la columna, 'jobID' es el texto del encabezado de dicha columna,
    # 10 es el procentaje de ancho de la columna (del total de MainWindow)

    mw = MainWindow(0.9, 0.7)
    mw.setGuiController(gc)
    mw.populate(LaserJob.keys)
    gc.setActualWindow(mw)

    lc.setGuiController(gc)
    lc.start()
Beispiel #3
0
## Application main entry point.

from Gui.MainWindow import MainWindow

mw = MainWindow()
mw.mainloop()