summaryrefslogtreecommitdiff
path: root/voctocat/voctocat.py
blob: dcab83dd321ad3391b77cb8bc917079d2b6185fa (plain)
  1. #!/usr/bin/python3
  2. import gi
  3. import signal
  4. gi.require_version('Gst', '1.0')
  5. from gi.repository import GLib, Gst, Gtk, GObject
  6. from videomix import Videomix
  7. from controlserver import ControlServer
  8. class Main:
  9. def __init__(self):
  10. self.videomix = Videomix()
  11. self.controlserver = ControlServer(self.videomix)
  12. def runmain():
  13. GObject.threads_init()
  14. Gst.init(None)
  15. signal.signal(signal.SIGINT, signal.SIG_DFL)
  16. start=Main()
  17. Gtk.main()
  18. if __name__ == '__main__':
  19. runmain()