diff options
author | MaZderMind <github@mazdermind.de> | 2015-06-18 13:47:05 +0200 |
---|---|---|
committer | MaZderMind <github@mazdermind.de> | 2015-06-18 13:47:05 +0200 |
commit | 2e7194ad7916bef47a8e322353a3cdbd27953697 (patch) | |
tree | aa76599f3d3d5c5d75b4f22c92a84b5e63a0be5e /voctogui/lib/ui.py | |
parent | cbc4f78dc9ad35a5b3ae81139cb6d8ffe054cdee (diff) |
minimalistic start of a level-meter
Diffstat (limited to 'voctogui/lib/ui.py')
-rw-r--r-- | voctogui/lib/ui.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/voctogui/lib/ui.py b/voctogui/lib/ui.py index 54a56a1..e3e2db0 100644 --- a/voctogui/lib/ui.py +++ b/voctogui/lib/ui.py @@ -26,8 +26,8 @@ class Ui(UiBuilder): def configure_video_main(self): video = self.find_widget_recursive(self.win, 'video_main') - self.video_main_player = VideoDisplay(11000, video) - pass + audiolevel = self.find_widget_recursive(self.win, 'audiolevel_main') + self.video_main_player = VideoDisplay(11000, video, audiolevel, playaudio=True) def configure_video_previews(self): sources = ['cam1', 'cam2', 'grabber'] @@ -35,12 +35,15 @@ class Ui(UiBuilder): for idx, source in enumerate(sources): preview = self.get_check_widget('widget_preview', clone=True) + video = self.find_widget_recursive(preview, 'video') + + # video.set_size_request(160, 90) + 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) - video = self.find_widget_recursive(preview, 'video') player = VideoDisplay(13000 + idx, video) self.preview_players[source] = player |