Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Stretchy grids in Tk

by Molt (Chaplain)
on Sep 15, 2003 at 12:57 UTC ( #291545=note: print w/replies, xml ) Need Help??


in reply to Stretchy grids in Tk

I don't have Tk on this machine to test this with, but you may want to try creating your widgets with -expand => 1 to expand the allocation rectangle to fill all the unfilled space, and -fill => 'both' to make the widget take up the full space of the allocation rectangle.

Let me know if there's any problems with this as I'll have my normal Tk-equipped machine again soon so could Play.

Replies are listed 'Best First'.
Re: Stretchy grids in Tk
by Abigail-II (Bishop) on Sep 15, 2003 at 13:02 UTC
    I don't have Tk on this machine to test this with, but you may want to try creating your widgets with -expand => 1 to expand the allocation rectangle to fill all the unfilled space, and -fill => 'both' to make the widget take up the full space of the allocation rectangle.

    That's only for the pack manager, not for the grid manager. For the latter, you need to use the -sticky option, and set it to the value nesw.

    Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://291545]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2023-03-26 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?