9 systray
= Systray
.HideableSystray()
10 def delete_main(window
, dev
):
11 if systray
.is_present():
12 # Only allow hiding the main window if the system tray icon is present
17 main
.main_window
.connect('delete-event', delete_main
)
18 except AssertionError:
19 # No Systray available, due to GTK version (requires 2.10 or better)
20 main
.main_window
.show()