diff options
| author | herkulessi <git@herkulessi.de> | 2026-04-04 19:23:15 +0200 |
|---|---|---|
| committer | herkulessi <git@herkulessi.de> | 2026-04-04 19:23:15 +0200 |
| commit | 626d893cf96899b3672602a35fb1f564597553fb (patch) | |
| tree | 26bb8d73cfc94b7d112117d4a3ff13423caae304 /gui.py | |
| parent | a23ba40e8da4b12bf2fda7b0d32f7ba2bfdd009b (diff) | |
Allow more kinds of inputs (e.g. mediaplayers/stills)HEADdevelopment
Diffstat (limited to 'gui.py')
| -rw-r--r-- | gui.py | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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: |
