summaryrefslogtreecommitdiff
path: root/voctocat/voctocat.py
blob: 5a56474d6f01765f4187813da23f9dda889c6c5b (plain)
  1. #!/usr/bin/python3
  2. import gi
  3. import signal
  4. from videomix import Videomix
  5. from controlserver import ControlServer
  6. gi.require_version('Gst', '1.0')
  7. from gi.repository import GLib, Gst, Gtk, GObject
  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()