Created
February 2, 2022 12:55
-
-
Save rondreas/744fa6fbe836580216e56e729757fd6c to your computer and use it in GitHub Desktop.
Iterate over all notifiers and get their arguments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lx | |
notify_system = lx.service.NotifySys() | |
for i in range(notify_system.Count()): | |
notifier = notify_system.ByIndex(i) # get the lx.object.Notifier | |
name = notify_system.NameByIndex(i) # get the str name for the Nofifier | |
# attempt getting arguments for the notifier, | |
try: | |
args = notifier.Args() | |
except NotImplementedError: | |
args = "" | |
print(f"{name} {args}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment