summaryrefslogtreecommitdiff
path: root/voctogui/voctogui.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2015-06-17 15:49:03 +0200
committerMaZderMind <github@mazdermind.de>2015-06-17 15:49:03 +0200
commit7432403bd14eb8eb9f0d202f7fe4addb403be559 (patch)
tree9c0527652338d79c0768b38b6a24b352cb87bc85 /voctogui/voctogui.py
parente78e24465bbe90150509946211148a364a75a115 (diff)
enhance ui control code
Diffstat (limited to 'voctogui/voctogui.py')
-rwxr-xr-xvoctogui/voctogui.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/voctogui/voctogui.py b/voctogui/voctogui.py
index 233bd16..52bc3c0 100755
--- a/voctogui/voctogui.py
+++ b/voctogui/voctogui.py
@@ -24,7 +24,7 @@ Gst.init([])
# import local classes
from lib.args import Args
-from lib.uibuilder import UiBuilder
+from lib.ui import Ui
# main class
class Voctogui(object):
@@ -34,7 +34,7 @@ class Voctogui(object):
# Uf a UI-File was specified on the Command-Line, load it
if Args.ui_file:
self.log.info('loading ui-file from file specified on command-line: %s', self.options.ui_file)
- self.builder = UiBuilder(Args.ui_file)
+ self.ui = Ui(Args.ui_file)
else:
# Paths to look for the gst-switch UI-File
@@ -49,18 +49,18 @@ class Voctogui(object):
if os.path.isfile(path):
self.log.info('loading ui-file from file %s', path)
- self.builder = UiBuilder(path)
+ self.ui = Ui(path)
break
- if self.builder is None:
+ if self.ui is None:
raise Exception("Can't find any .ui-Files to use (searched %s)" % (', '.join(paths)))
- self.builder.setup()
+ self.ui.setup()
def run(self):
self.log.info('setting UI visible')
- self.builder.show()
+ self.ui.show()
try:
self.log.info('running Gtk-MainLoop')