summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherkulessi <git@herkulessi.de>2026-04-04 19:23:15 +0200
committerherkulessi <git@herkulessi.de>2026-04-04 19:23:15 +0200
commit626d893cf96899b3672602a35fb1f564597553fb (patch)
tree26bb8d73cfc94b7d112117d4a3ff13423caae304
parenta23ba40e8da4b12bf2fda7b0d32f7ba2bfdd009b (diff)
Allow more kinds of inputs (e.g. mediaplayers/stills)HEADdevelopment
-rw-r--r--gui.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index e807020..c7dead7 100644
--- a/gui.py
+++ b/gui.py
@@ -81,10 +81,17 @@ class PyATEMSwitcherGui:
self.buttons = {}
log.debug("Button state cleared, creating buttons")
+
+ possibleInputs = {}
+ for _, value in enumerate(switcher.atem.videoSources):
+ if value.name.endswith("Direct") or value.name.endswith("Prev") or value.name.endswith("Prog") or value.name.endswith("Key"):
+ continue
+ possibleInputs[value.name] = switcher.inputProperties[value.name]
+
inputs = {}
- for idx, i in enumerate(switcher.inputProperties):
+ for idx, i in possibleInputs.items():
if not i.shortName:
- break
+ continue
if i.shortName.lower() in ("-", "empty", "x"):
continue
if f"in_{i.shortName}" in self.buttons: