Skip to content

Instantly share code, notes, and snippets.

@rondreas
Created February 2, 2022 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rondreas/744fa6fbe836580216e56e729757fd6c to your computer and use it in GitHub Desktop.
Save rondreas/744fa6fbe836580216e56e729757fd6c to your computer and use it in GitHub Desktop.
Iterate over all notifiers and get their arguments
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