| Author |
WIN Tk Graphics obscured during long EXEC command
|
|
| dlheim@rockwellcollins.com 2007-02-21, 7:15 pm |
| How can I prevent the Tk window graphics from being obscured when
covered and uncovered by another window while executing a long process
using EXEC and waiting for it to finish. Is there a setting in Tk that
will automatically refresh the window after it is unobscured without
an update command?
| |
| Bryan Oakley 2007-02-21, 7:15 pm |
| dlheim@rockwellcollins.com wrote:
> How can I prevent the Tk window graphics from being obscured when
> covered and uncovered by another window while executing a long process
> using EXEC and waiting for it to finish. Is there a setting in Tk that
> will automatically refresh the window after it is unobscured without
> an update command?
>
You will need to run the exec'd process in the background.
See http://wiki.tcl.tk/1526
--
Bryan Oakley
http://www.tclscripting.com
| |
| Michael Schlenker 2007-02-21, 7:15 pm |
| dlheim@rockwellcollins.com schrieb:
> How can I prevent the Tk window graphics from being obscured when
> covered and uncovered by another window while executing a long process
> using EXEC and waiting for it to finish. Is there a setting in Tk that
> will automatically refresh the window after it is unobscured without
> an update command?
>
Use a threaded Tcl an run your exec in a different thread than Tk would
be one way. Using the open |$cmd idiom with some fileevent handlers to
get the output would be another one.
Basically if you block Tcl/Tks event loop for a long time you will the
the effect your seeing.
Michael
|
|
|
|