[Tutor] Why does "window = tk.Tk()" open a tkinter window when typed in the Python interpreter?
Alan Gauld
alan.gauld at yahoo.co.uk
Fri Aug 28 18:52:48 EDT 2020
On 28/08/2020 21:38, boB Stepp wrote:
>> Because it's what Tcl/Tk does...
>
> Perhaps I should phrase the question differently: Why does this
> happen in the interpreter but does *not* happen if I run a program
> without calling window.mainloop()?
I repeat, because its what Tcl/Tk does....
Now why (or more to the point how) Tcl/Tk does that, I have no idea!
Sorry...
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list