aboutsummaryrefslogtreecommitdiff
path: root/voctocore/voctocat.py
diff options
context:
space:
mode:
authorMaZderMind <github@mazdermind.de>2014-07-28 23:13:45 +0200
committerMaZderMind <github@mazdermind.de>2014-07-28 23:13:45 +0200
commitf3245358a983f2e97076cac3bbeaafc42eac148a (patch)
tree3f6a4e3651d7831be5496f25807186bd67cd5f4f /voctocore/voctocat.py
parent150db06d4dccb52b1b219dad4f5bb189c9d29d95 (diff)
rename from octocat to core
Diffstat (limited to 'voctocore/voctocat.py')
-rwxr-xr-xvoctocore/voctocat.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/voctocore/voctocat.py b/voctocore/voctocat.py
new file mode 100755
index 0000000..dcab83d
--- /dev/null
+++ b/voctocore/voctocat.py
@@ -0,0 +1,27 @@
+#!/usr/bin/python3
+import gi
+import signal
+
+gi.require_version('Gst', '1.0')
+from gi.repository import GLib, Gst, Gtk, GObject
+
+from videomix import Videomix
+from controlserver import ControlServer
+
+
+
+class Main:
+ def __init__(self):
+ self.videomix = Videomix()
+ self.controlserver = ControlServer(self.videomix)
+
+def runmain():
+ GObject.threads_init()
+ Gst.init(None)
+
+ signal.signal(signal.SIGINT, signal.SIG_DFL)
+ start=Main()
+ Gtk.main()
+
+if __name__ == '__main__':
+ runmain()