Tkinter widgets into classes.

Dave Angel davea at
Sat Feb 1 22:52:51 CET 2014

 Lewis Wood <fluttershy363 at> Wrote in message:
> Oh and another question, say I make another window in the program itself using this:
> def secondwindow():
>     root2=Tk()
>     root2.mainloop()
> Would it be possible for me to use some code which would return True if one of these windows is currently up, or return False if the window is not up?

No need. Only one at a time can be running,  and you won't return
 from this function till it's done.

To put it another way, you only want one mainloop in your code.

More information about the Python-list mailing list