How can I set the size of a window with tkinter?
Iain King
iainking at gmail.com
Wed Sep 28 05:29:28 EDT 2005
Tor Erik Sønvisen wrote:
> Hi
>
> I create a canvas that is to big for the default window-size, so it gets cut
> to fit...
> How can I increase the window-size to make sure the canvas fits?
>
> regards tores
root=Tk()
root.minsize(300,300)
root.geometry("500x500")
will limit the window to be at least 300x300, and set it straight away
to 500x500.
Iain
More information about the Python-list
mailing list