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. _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org http://mail.python.org/mailman/listinfo/tkinter-discuss