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()
def __init__(self): from pyzen.ui.win32.wrappers import SystrayIconThread self.thread = SystrayIconThread() self.thread.start()