Ejemplo n.º 1
0
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()
Ejemplo n.º 2
0
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()
Ejemplo n.º 3
0
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()
Ejemplo n.º 4
0
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()