[Tkinter-discuss] How to detech change of variable state in Tk?

Snakey darr_low at yahoo.com
Mon Apr 14 15:36:03 CEST 2008


I have written a Tk GUI that upon pressing a button, will launch a subprocess
to open a dos-box "cmd.exe".

I need the GUI to monitor the returncode of this subprocess, so that when
the dos box closes with return code 0, a subroutine can be executed to
handle this event.  BUT while the dos box is open, the GUI must still
monitor all other events in mainloop() ( ie. GUI cannot hang ).

snipplet of code:  >>>

import subprocess
s= subprocess.Popen( 'cmd.exe' )

# s.poll() ???
	

-- 
View this message in context: http://www.nabble.com/How-to-detech-change-of-variable-state-in-Tk--tp16677661p16677661.html
Sent from the Python - tkinter-discuss mailing list archive at Nabble.com.



More information about the Tkinter-discuss mailing list