summaryrefslogtreecommitdiff
path: root/voctocore/voctocore.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2014-07-31 23:35:06 +0200
committerMaZderMind <github@mazdermind.de>2014-07-31 23:35:06 +0200
commita5ef9e4ee04e47bf15516b4ece91150f5ea4b5eb (patch)
tree4bd4acd6b65aba87a8b3554cc97b1a4c6cb2c1e6 /voctocore/voctocore.py
parent809c06fa34e8fdad21acdeeb7aeee8ca994b7f40 (diff)
document code
Diffstat (limited to 'voctocore/voctocore.py')
-rwxr-xr-xvoctocore/voctocore.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/voctocore/voctocore.py b/voctocore/voctocore.py
index dcab83d..bec2c03 100755
--- a/voctocore/voctocore.py
+++ b/voctocore/voctocore.py
@@ -2,24 +2,29 @@
import gi
import signal
+# import GStreamer and GTK-Helper classes
gi.require_version('Gst', '1.0')
from gi.repository import GLib, Gst, Gtk, GObject
+# init GObject before importing local classes
+GObject.threads_init()
+Gst.init(None)
+
+# import local classes
from videomix import Videomix
from controlserver import ControlServer
-
-
class Main:
def __init__(self):
+ # initialize subsystem
self.videomix = Videomix()
self.controlserver = ControlServer(self.videomix)
def runmain():
- GObject.threads_init()
- Gst.init(None)
-
+ # make killable by ctrl-c
signal.signal(signal.SIGINT, signal.SIG_DFL)
+
+ # start main-class and main-loop
start=Main()
Gtk.main()