Beispiel #1
0
 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))
Beispiel #2
0
 def start(self):
     """rewrite To make Ctrl-C works"""
     while True:
         result = win32gui.PumpWaitingMessages()
         if result:
             return
         time.sleep(0.05)
Beispiel #3
0
 def run(self):
     while not win32gui.PumpWaitingMessages():
         self.shell.process_idle_tasks()
         time.sleep(0.1)
Beispiel #4
0
 def pump(self):
     win32gui.PumpWaitingMessages()