Window does not resize it's components

Martin Franklin mfranklin1 at gatwick.westerngeco.slb.com
Wed Jul 31 11:11:52 EDT 2002


On Wednesday 31 Jul 2002 12:54 pm, Raimo Tuisku wrote:
> I have a couple of widgets in a window(Text and Entry widgets). But their
> size remain even if the user resizes the window which is not what I
> want. How can I make them fit precisely in the window borders even if the
> window is resized? Do I have to fiddle with the signals or what?


Is this Tk(inter) ?


If so then when you .pack() these widgets add a few extra arguments


>From `pydoc Tkinter.Frame.pack`:-

Python Library Documentation: method pack_configure in Tkinter.Frame

pack = pack_configure(self, cnf={}, **kw) unbound Tkinter.Frame method
    Pack a widget in the parent widget. Use as options:
    after=widget - pack it after you have packed widget
    anchor=NSEW (or subset) - position widget according to
                              given direction
            before=widget - pack it before you will pack widget
    expand=1 or 0 - expand widget if parent size grows
    fill=NONE or X or Y or BOTH - fill widget if widget grows
    in=master - use master to contain this widget
    ipadx=amount - add internal padding in x direction
    ipady=amount - add internal padding in y direction
    padx=amount - add padding in x direction
    pady=amount - add padding in y direction
    side=TOP or BOTTOM or LEFT or RIGHT -  where to add this widget.

Regards
Martin




More information about the Python-list mailing list