until GTK and PyGTK 2.10 exist for Windows disable trayicon. When they exist, we are going to use the GTK API only for WINDOWS as it does not support animation [which is C R A Z Y but true] and we have and NEED animation in GNU/Linux

This commit is contained in:
Nikos Kouremenos 2006-09-25 19:12:12 +00:00
parent 6aa2716a42
commit 1cc9184593
1 changed files with 3 additions and 0 deletions

View File

@ -1915,6 +1915,8 @@ class Interface:
self.systray_capabilities = False self.systray_capabilities = False
if os.name == 'nt': if os.name == 'nt':
pass
'''
try: try:
import systraywin32 import systraywin32
except: # user doesn't have trayicon capabilities except: # user doesn't have trayicon capabilities
@ -1922,6 +1924,7 @@ class Interface:
else: else:
self.systray_capabilities = True self.systray_capabilities = True
self.systray = systraywin32.SystrayWin32() self.systray = systraywin32.SystrayWin32()
'''
else: else:
self.systray_capabilities = systray.HAS_SYSTRAY_CAPABILITIES self.systray_capabilities = systray.HAS_SYSTRAY_CAPABILITIES
if self.systray_capabilities: if self.systray_capabilities: