aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-13 03:35:34 +0200
committerMarek Siarkowicz <mareksiarkowicz@gmail.com>2015-06-13 03:35:34 +0200
commit64bcb2f38bc47d9c4edd61fa0590da0698a6bc4b (patch)
tree27eeddae53ad70ade1a7eecdbdc11fe81b96375d
parent2d12b23595a7c893231d5238f406054d040aac01 (diff)
downloadpyParrotZikTCP-64bcb2f38bc47d9c4edd61fa0590da0698a6bc4b.tar.xz
pyParrotZikTCP-64bcb2f38bc47d9c4edd61fa0590da0698a6bc4b.zip
Move rooms to submenu.
-rwxr-xr-xParrotZikTray16
1 files changed, 11 insertions, 5 deletions
diff --git a/ParrotZikTray b/ParrotZikTray
index 67ccf65..f2fe92a 100755
--- a/ParrotZikTray
+++ b/ParrotZikTray
@@ -255,6 +255,13 @@ class ParrotZikVersion2Interface(ParrotZikBaseInterface):
self.room_sound_effect_enabled = MenuItem(
"Enabled", self.toggle_room_sound_effect, sensitive=True, checkitem=True)
+ self.rooms = MenuItem("Rooms", None, sensitive=True, checkitem=False)
+ self.room_sound_effect_submenu.append(self.room_sound_effect_enabled)
+ self.room_sound_effect_submenu.append(self.rooms)
+
+ self.rooms_submenu = Menu()
+ self.rooms.set_submenu(self.rooms_submenu)
+
self.concert_hall_mode = MenuItem("Concert Hall",
self.toggle_concert_hall_mode,
sensitive=True, checkitem=True)
@@ -264,11 +271,10 @@ class ParrotZikVersion2Interface(ParrotZikBaseInterface):
sensitive=True, checkitem=True)
self.silent_mode = MenuItem("Silent Room", self.toggle_silent_room_mode,
sensitive=True, checkitem=True)
- self.room_sound_effect_submenu.append(self.room_sound_effect_enabled)
- self.room_sound_effect_submenu.append(self.concert_hall_mode)
- self.room_sound_effect_submenu.append(self.jazz_mode)
- self.room_sound_effect_submenu.append(self.living_mode)
- self.room_sound_effect_submenu.append(self.silent_mode)
+ self.rooms_submenu.append(self.concert_hall_mode)
+ self.rooms_submenu.append(self.jazz_mode)
+ self.rooms_submenu.append(self.living_mode)
+ self.rooms_submenu.append(self.silent_mode)
self.indicator.menu.append(self.room_sound_effect)
self.flight_mode = MenuItem("Flight Mode", self.toggle_flight_mode,