Yes, looking for the filehandle to close is what I tried first, but it appeared it wasn't ever closing unless I closed it myself. SO I needed a way to determine when I could safely close it, and this is what I came up with. I'm sure there must be better ways; I just haven't come up with one that works yet and still allows me to periodically poll it, rather than just waiting on it and blocking until it terminates. I need to balance "only one player child is allowed to run at a time" vs. "the rest of the app must not block while waiting for the player to exit".
In reply to Re^4: Dynamically altering Tk buttons
by Llew_Llaw_Gyffes
in thread Dynamically altering Tk buttons
by Llew_Llaw_Gyffes
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |