Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Perhaps you need to run your system command as a background process? The problem is that when you run a system command that seizes control of the current process, the Tk event loop doesn't get executed, so no window updates occur. If you call external programs in their own process, it allows the Tk events some processing time. See below: (Windows example, adjust as necessary to call background processes in your OS)
For your sleep example? Well, if you don't call your event loop periodically, don't be surprised if your events don't get processed... In reply to Re^3: Perl/Tk window contents disappear when obscured then revealed
by thundergnat
|
|