class CubeApp(wx.App): def __init__(self): super(CubeApp, self).__init__() self.device = CubeDevice() def Run(self): frame = MainFrame(None, self.device) frame.Show() self.SetTopWindow(frame) self.SetExitOnFrameDelete(True) TaskBarIcon() self.MainLoop() self.device.disconnect()
def __init__(self): super(CubeApp, self).__init__() self.device = CubeDevice()