summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-06-17 17:26:45 +0200
committerMaZderMind <github@mazdermind.de>2015-06-17 17:26:45 +0200
commit3ba97a73149bb283d818408738ddc46395068701 (patch)
tree651bdbf1974aa39578c937ad44f2e7809ebdb569
parent086865a64db5d182ff39bf7015c80b9aba20a2e4 (diff)
Collect generated Preview Panes
-rw-r--r--voctogui/lib/ui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/voctogui/lib/ui.py b/voctogui/lib/ui.py
index fd40bb8..7e7a5e6 100644
--- a/voctogui/lib/ui.py
+++ b/voctogui/lib/ui.py
@@ -16,6 +16,8 @@ class Ui(UiBuilder):
# Connect Close-Handler
self.win.connect('delete-event', Gtk.main_quit)
+ self.previews = {}
+
self.configure_video_previews()
self.configure_audio_selector()
@@ -25,11 +27,11 @@ class Ui(UiBuilder):
for source in sources:
preview = self.get_check_widget('widget_preview', clone=True)
- #box.add(preview)
box.pack_start(preview, fill=False, expand=False, padding=0)
# http://stackoverflow.com/questions/3489520/python-gtk-widget-name
self.find_widget_recursive(preview, "label").set_label(source)
+ self.previews[source] = preview
def configure_audio_selector(self):
combo = self.get_check_widget('combo_audio')