def run(self): self.initialize() while not self.terminate: win32gui.PumpWaitingMessages() self.doUpdates() sleep(0.100) win32gui.Shell_NotifyIcon(win32gui.NIM_DELETE, (self.hwnd, 0))
def start(self): """rewrite To make Ctrl-C works""" while True: result = win32gui.PumpWaitingMessages() if result: return time.sleep(0.05)
def run(self): while not win32gui.PumpWaitingMessages(): self.shell.process_idle_tasks() time.sleep(0.1)
def pump(self): win32gui.PumpWaitingMessages()