Add Gst
This commit is contained in:
parent
66efd0fe15
commit
9f929fd04e
1 changed files with 6 additions and 1 deletions
|
@ -6,8 +6,10 @@ from typing import Any, cast
|
|||
|
||||
import gi
|
||||
|
||||
gi.require_version("Gdk", "4.0")
|
||||
gi.require_version("Gtk", "4.0")
|
||||
from gi.repository import Gdk, Gtk # NOQA: E402
|
||||
gi.require_version("Gst", "1.0")
|
||||
from gi.repository import Gdk, Gst, Gtk # NOQA: E402
|
||||
|
||||
|
||||
class MainWindow(Gtk.ApplicationWindow):
|
||||
|
@ -133,6 +135,9 @@ class App(Gtk.Application):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
|
||||
# Initialize GStreamer
|
||||
Gst.init(None)
|
||||
|
||||
# Load CSS
|
||||
css_provider = Gtk.CssProvider()
|
||||
css_file = Path(__file__).parent / "style.css"
|
||||
|
|
Loading…
Reference in a new issue