aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-09-06 13:59:58 +0200
committerMaZderMind <git@mazdermind.de>2015-09-06 13:59:58 +0200
commitb30ba5aff5f1d0bce7ab47c1818a5b07f1aba3d7 (patch)
treedfddb7a721925398adb6e4859da3cda4e901ff34
parent8d818672fd2c7fdf38f9230fb78b6cf72b5f70eb (diff)
Configure Audio-Selector from Server-Config
-rw-r--r--voctogui/lib/audioselector.py8
1 files changed, 5 insertions, 3 deletions
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