mirror of
https://github.com/onyx-and-iris/voicemeeter-api-python.git
synced 2026-04-07 16:03:30 +00:00
mdirty added to updates
using walrus operator in examples
This commit is contained in:
@@ -14,13 +14,9 @@ def main():
|
||||
obs = Observer(vm)
|
||||
vm.subject.add(obs)
|
||||
|
||||
try:
|
||||
while True:
|
||||
cmd = input("Press Return to exit\n")
|
||||
if not cmd:
|
||||
break
|
||||
except KeyboardInterrupt as e:
|
||||
SystemExit(e)
|
||||
while cmd := input("Press <Enter> to exit\n"):
|
||||
if not cmd:
|
||||
break
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user