| Deutsch English Français Italiano |
|
<width-20240224105538@ram.dialup.fu-berlin.de> View for Bookmarking (what is this?) Look up another Usenet article |
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Problem resizing a window and button placement
Date: 24 Feb 2024 09:56:11 GMT
Organization: Stefan Ram
Lines: 23
Expires: 1 Feb 2025 11:59:58 GMT
Message-ID: <width-20240224105538@ram.dialup.fu-berlin.de>
References: <mailman.0.1708738860.3452.python-list@python.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de tt246YwUndz81JWMyTrSTwVOCOh96qWyGZuEIKW/Z4/ocj
Cancel-Lock: sha1:td7AjVOlPMTB1d2aqq+hp2eez08= sha256:ccOradSV67vHYuePL0E/8vqowb6zKWO/oFBZZDj3fgI=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
Distribution through any means other than regular usenet
channels is forbidden. It is forbidden to publish this
article in the Web, to change URIs of this article into links,
and to transfer the body without this notice, but quotations
of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
services to mirror the article in the web. But the article may
be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Accept-Language: de-DE-1901, en-US, it, fr-FR
"Steve GS" <Gronicus@SGA.Ninja> writes:
>width
Using a geometry manager, such as "pack", you usually do not need
to know when a window has been resized or to know that width.
You need to read a good tkinter book and learn about:
tkinter.Tk
pack
tkinter.Frame
side=tkinter.LEFT
side=tkinter.RIGHT
expand=tkinter.YES
fill=tkinter.X
fill=tkinter.Y
fill=tkinter.BOTH
. I'd recommand the GUI part of "Programming Python" by Mark Lutz!
The geometry manages "pack" and "grid" should be able
to handle 99 percent of all GUI geometry requirements,
so you would need a good reason not to use them.