From b30ba5aff5f1d0bce7ab47c1818a5b07f1aba3d7 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 6 Sep 2015 13:59:58 +0200 Subject: Configure Audio-Selector from Server-Config --- voctogui/lib/audioselector.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'voctogui/lib/audioselector.py') diff --git a/voctogui/lib/audioselector.py b/voctogui/lib/audioselector.py index 8ad84e3..141ecc4 100644 --- a/voctogui/lib/audioselector.py +++ b/voctogui/lib/audioselector.py @@ -1,6 +1,8 @@ import logging from gi.repository import Gst, Gdk, GLib +from lib.config import Config + class AudioSelectorController(object): """ Displays a Level-Meter of another VideoDisplay into a GtkWidget """ @@ -21,10 +23,10 @@ class AudioSelectorController(object): self.eventbox = eventbox combo.remove_all() - combo.append('moobar', 'Moo Bar') - combo.append('moofar', 'Moo Far') + for name in Config.getlist('mix', 'sources'): + combo.append(name, name) - combo.set_active_id('moobar') + #combo.set_active_id(name) self.timer_iteration = 0 -- cgit v1.2.3