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