def main(): import time t = SystrayIconThread() t.start() time.sleep(2) t.post_message(WM_APP, 1, 2) time.sleep(1) print 'Sending quit' t.quit()
class Win32UI(PyZenUI): """A PyZen UI that uses the Win32 system tray.""" name = 'win32' platform = 'win32' def __init__(self): from pyzen.ui.win32.wrappers import SystrayIconThread self.thread = SystrayIconThread() self.thread.start() def notify(self, failure, title, msg, icon): self.thread.notify(title, msg, icon+'.ico') def shutdown(self): self.thread.quit() self.thread.join()
class Win32UI(PyZenUI): """A PyZen UI that uses the Win32 system tray.""" name = 'win32' platform = 'win32' def __init__(self): from pyzen.ui.win32.wrappers import SystrayIconThread self.thread = SystrayIconThread() self.thread.start() def notify(self, failure, title, msg, icon): self.thread.notify(title, msg, icon + '.ico') def shutdown(self): self.thread.quit() self.thread.join()
def __init__(self): from pyzen.ui.win32.wrappers import SystrayIconThread self.thread = SystrayIconThread() self.thread.start()