A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/340836.html below:

How can I set the size of a window with tkinter?

How can I set the size of a window with tkinter? 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4