diff options
Diffstat (limited to 'voctocat/voctocat.py')
-rwxr-xr-x | voctocat/voctocat.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/voctocat/voctocat.py b/voctocat/voctocat.py new file mode 100755 index 0000000..5a56474 --- /dev/null +++ b/voctocat/voctocat.py @@ -0,0 +1,25 @@ +#!/usr/bin/python3 +import gi +import signal +from videomix import Videomix +from controlserver import ControlServer + +gi.require_version('Gst', '1.0') +from gi.repository import GLib, Gst, Gtk, GObject + + +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() |