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.


Comment on Re: Stretchy grids in Tk
Select or Download Code
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
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 wandering the Monastery: (18)
As of 2014-07-23 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (144 votes), past polls