aboutsummaryrefslogtreecommitdiff
path: root/SysIndicator.py
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-13 00:06:19 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-13 00:06:19 +0200
commit2e8383760b2f32e8d068a4b235b6379cd3f06c17 (patch)
treecadf828df54a526532dca6ccaea8ed2c73f17e9c /SysIndicator.py
parenta9cfa13c5718bac0dd62a2aef0c39bc05590e55e (diff)
downloadpyParrotZikTCP-2e8383760b2f32e8d068a4b235b6379cd3f06c17.tar.xz
pyParrotZikTCP-2e8383760b2f32e8d068a4b235b6379cd3f06c17.zip
First step of zik 2.0 feature implementation.
Diffstat (limited to '')
-rw-r--r--SysIndicator.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/SysIndicator.py b/SysIndicator.py
index 804b001..6aa4686 100644
--- a/SysIndicator.py
+++ b/SysIndicator.py
@@ -177,6 +177,9 @@ class MenuItemBase(object):
def hide(self):
self.base_item.hide()
+ def set_submenu(self, menu):
+ raise NotImplementedError
+
class GTKMenuItem(MenuItemBase):
def __init__(self, name, action, sensitive=True, checkitem=False, visible=True):
if checkitem:
@@ -199,6 +202,9 @@ class GTKMenuItem(MenuItemBase):
def set_label(self, option):
return self.base_item.set_label(option)
+ def set_submenu(self, menu):
+ self.base_item.set_submenu(menu.gtk_menu)
+
class NSMenuItem(MenuItemBase):
def __init__(self, name, action, sensitive=True, checkitem=False, visible=True):