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()