summaryrefslogtreecommitdiff
path: root/examples/pygtk-demo/demos/statusicon.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pygtk-demo/demos/statusicon.py')
-rw-r--r--examples/pygtk-demo/demos/statusicon.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/examples/pygtk-demo/demos/statusicon.py b/examples/pygtk-demo/demos/statusicon.py
deleted file mode 100644
index 53564a81..00000000
--- a/examples/pygtk-demo/demos/statusicon.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env python
-'''Status Icon
-
-This is a simple example that shows how to create a status icon that
-will appear in the "notification area" in GNOME/KDE, or "system tray"
-in Windows.
-'''
-## Author: Nikos Kouremenos
-
-import gtk
-
-
-def make_menu(event_button, event_time, icon):
- menu = gtk.Menu()
- item = gtk.MenuItem('hi')
- item.show()
- menu.append(item)
- menu.popup(None, None,
- gtk.status_icon_position_menu, event_button,
- event_time, icon)
-
-def on_right_click(icon, event_button, event_time):
- make_menu(event_button, event_time, icon)
-
-def StatusIconDemo(parent=None):
- icon = gtk.status_icon_new_from_stock(gtk.STOCK_QUIT)
- icon.connect('popup-menu', on_right_click)
-
-if __name__ == '__main__':
- StatusIconDemo()
- gtk.main()