diff options
| author | Franziska Kunsmann <hi@kunsmann.eu> | 2023-05-01 10:19:55 +0200 |
|---|---|---|
| committer | Franziska Kunsmann <hi@kunsmann.eu> | 2023-05-01 10:19:55 +0200 |
| commit | 1500567e50c8ab20314068566847dcdea109c63d (patch) | |
| tree | 7e756c9df3cedc64180fd671ef2f1b52faaa8872 | |
| parent | f043247f4bc2f3c652e06c6a27386533b3b8bdbc (diff) | |
gui: add wmclass
This is needed so we can properly identify the switcher in i3 layouts
| -rw-r--r-- | gui.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -26,6 +26,8 @@ class PyATEMSwitcherGui(): self.window = Gtk.Window() self.window.connect("destroy", self._exit) + self.window.set_wmclass('pygtk-atem-switcher', 'PyGTK-ATEM-Switcher') + self.switcher = switcher self.switcher.on_connect(self._switcher_connected) self.switcher.on_connect_attempt(self._switcher_connect_attempt) @@ -71,6 +73,8 @@ class PyATEMSwitcherGui(): for idx,i in enumerate(switcher.inputProperties): if not i.shortName: break + if i.shortName.lower() in ('-', 'empty', 'x'): + continue log.debug(f'Creating Button for {i.shortName} of type {i.externalPortType}: {i.longName}') btn = Gtk.Button.new_with_label( i.longName |
