From 2e7194ad7916bef47a8e322353a3cdbd27953697 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Thu, 18 Jun 2015 13:47:05 +0200 Subject: minimalistic start of a level-meter --- voctogui/lib/ui.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'voctogui/lib/ui.py') 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 -- cgit v1.2.3