Пример #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()
Пример #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()
Пример #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()
Пример #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()
Пример #5
0
 def __init__(self):
     from pyzen.ui.win32.wrappers import SystrayIconThread
     self.thread = SystrayIconThread()
     self.thread.start()
Пример #6
0
 def __init__(self):
     from pyzen.ui.win32.wrappers import SystrayIconThread
     self.thread = SystrayIconThread()
     self.thread.start()