diff options
author | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-13 00:06:19 +0200 |
---|---|---|
committer | Marek Siarkowicz <mareksiarkowicz@gmail.com> | 2015-06-13 00:06:19 +0200 |
commit | 2e8383760b2f32e8d068a4b235b6379cd3f06c17 (patch) | |
tree | cadf828df54a526532dca6ccaea8ed2c73f17e9c /SysIndicator.py | |
parent | a9cfa13c5718bac0dd62a2aef0c39bc05590e55e (diff) | |
download | pyParrotZikTCP-2e8383760b2f32e8d068a4b235b6379cd3f06c17.tar.xz pyParrotZikTCP-2e8383760b2f32e8d068a4b235b6379cd3f06c17.zip |
First step of zik 2.0 feature implementation.
Diffstat (limited to '')
-rw-r--r-- | SysIndicator.py | 6 |
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): |