def slot_gotProg(prog): if (prog == "setup"): from dbInit import setup setup() return elif (prog == "control"): from guiCP import GuiCP # Initialize graphical interface gui = GuiCP("cp") elif (prog == "edit"): from guiEditor import GuiEditor # Initialize graphical interface gui = GuiEditor("editor") elif (prog == "sync"): from guiSync import GuiSync # See if a client database file has been passed on the command line filepath = None if (len(sys.argv) > 2): f = sys.argv[2] if f.endswith(".zgn"): filepath = f # Initialize graphical interface gui = GuiSync("sync", filepath) elif (prog == "print"): from guiPrint import GuiPrint # Initialize graphical interface gui = GuiPrint("print") elif (prog == "cfged"): from guiConfigEd import GuiConfigEd # Initialize graphical interface gui = GuiConfigEd("cfged") else: return # enter event loop gui.run()
def start(): # Initialize graphical interface gui = GuiCP("cp") # enter event loop gui.run()