MCPcopy Create free account
hub / github.com/dialect-app/dialect / __init__

Method __init__

dialect/window.py:117–132  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

115 before_suggest: str | None = None
116
117 def __init__(self, **kwargs):
118 super().__init__(**kwargs)
119
120 # Application object
121 self.app: Adw.Application = kwargs["application"]
122
123 # GStreamer playbin object and related setup
124 self.player = Gst.ElementFactory.make("playbin", "player")
125 if self.player:
126 if bus := self.player.get_bus():
127 bus.add_signal_watch()
128 bus.connect("message", self._on_gst_message)
129
130 # Setup window
131 self.setup_actions()
132 self.setup()
133
134 def setup_actions(self):
135 back = Gio.SimpleAction(name="back")

Callers

nothing calls this directly

Calls 2

setup_actionsMethod · 0.95
setupMethod · 0.95

Tested by

no test coverage detected