def main(): # Close TF's logging os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Init GUI app = wx.App(False) frame = GUI(None) frame.Show(True) # Start main thread cm_thread = CMThread(frame) cm_thread.start() # Set Configurer frame.setParamConfig(cm_thread.param_config) # Start GUI app.MainLoop()
def main(): ex = GUI(None, title="System") ex.Show() GUI.app.MainLoop()