Sujet : Re: Problem resizing a window and button placement
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 24. Feb 2024, 10:56:11
Autres entêtes
Organisation : Stefan Ram
Message-ID : <width-20240224105538@ram.dialup.fu-berlin.de>
References : 1
"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.