Python, tkinter - check to see if a window is open
Here is a way to tell if a window is running:
if 'normal' == root.state(): print 'running'
root.state()
gets the state of the window so if the window sate is normal it means its running
so in the main window you can use this condition to check if the if a subwindow is openand if it is you can use focus_set()
to bring that window to focus