-
|
Beta Was this translation helpful? Give feedback.
Answered by
CEXT-Dan
Feb 2, 2025
Replies: 1 comment
-
You can try a static variable or call removeOnIdleWinMsg inside onIdle Example import traceback
from pyrx_imp import Rx, Ge, Gi, Db, Ap, Ed, Ax
def worker(args = None):
print(args)
def onIdleOnce():
try:
worker("yay!")
Ap.Application.removeOnIdleWinMsg(onIdleOnce)
except Exception as err:
traceback.print_exception(err)
@Ap.Command()
def doit():
try:
Ap.Application.registerOnIdleWinMsg(onIdleOnce)
except Exception as err:
traceback.print_exception(err) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gswifort
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can try a static variable or call removeOnIdleWinMsg inside onIdle
Example
http://www.theswamp.org/index.php?topic=59164.msg618845#msg618845