Tkinter widgets into classes.

Lewis Wood fluttershy363 at gmail.com
Sat Feb 1 23:12:09 CET 2014


On Saturday, 1 February 2014 21:52:51 UTC, Dave Angel  wrote:
> Lewis Wood <fluttershy363 at gmail.com> 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.
> 
> -- 
> 
> DaveA

But I can click the button Multiple times and it will create multiple windows?



More information about the Python-list mailing list