aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2018-08-22 21:01:20 +0200
committerDave Andreoli <dave@gurumeditation.it>2018-08-22 21:01:20 +0200
commit7c555cc9da2a69c4da2f313313f348c936fcaf95 (patch)
tree313cd0970e6e0b591c5f03fa2382c45a80352f60 /examples
parentDisable a failing test (diff)
downloadpython-efl-7c555cc9da2a69c4da2f313313f348c936fcaf95.tar.gz
Say goodbye to the Systray widget
This is a really bad break !!! ... shame on us to have used an efl beta api :(
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/elementary/test.py1
-rw-r--r--examples/elementary/test_systray.py38
2 files changed, 0 insertions, 39 deletions
diff --git a/examples/elementary/test.py b/examples/elementary/test.py
index 3c01007..cde28ba 100755
--- a/examples/elementary/test.py
+++ b/examples/elementary/test.py
@@ -247,7 +247,6 @@ items = [
]),
("System", [
("Notification", "test_sys_notify", "sys_notify_clicked"),
- ("Systray", "test_systray", "systray_clicked"),
]),
("Text", [
("Label", "test_label", "label_clicked"),
diff --git a/examples/elementary/test_systray.py b/examples/elementary/test_systray.py
deleted file mode 100644
index 7c8791c..0000000
--- a/examples/elementary/test_systray.py
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/python
-
-import efl.elementary as elm
-
-from efl.elementary.window import StandardWindow
-from efl.elementary.systray import Systray, on_systray_ready
-from efl.elementary.menu import Menu
-
-
-def systray_clicked(obj, item=None):
- if not elm.need_systray():
- print("systray support not available")
- return
-
- win = StandardWindow("test", "systray test", size=(400, 400), autodel=True)
- if not obj:
- win.callback_delete_request_add(lambda x: elm.exit())
-
- menu = Menu(win)
- menu.item_add(None, "it works!")
-
- global tray
- tray = Systray(win)
- tray.icon_name = "elementary"
- tray.att_icon_name = "elementary"
- tray.menu = menu
-
- on_systray_ready(lambda x: tray.register())
-
- win.show()
-
-if __name__ == "__main__":
- elm.init()
-
- systray_clicked(None)
-
- elm.run()
- elm.shutdown()