Advanced Search
Mail us
Home    Manuel    Links    Faq    Submit a tcl/tk Reference    Contact Us

    Some examples tcl/tk codes     Man of Bwidget     Man of blt     mkwidget screenshots     TkOgl     Video Demo real.


  How can I pack a text widget so that it can be resized interactively?
 
 When using the `pack` geometry manager, use `-expand 1`, as in the
following:

pack [text .text] -fill both -expand 1

When using the `grid` geometry manager, do the following:

grid [text .text] -sticky news
grid rowconfigure 0 -weight 1
grid columnconfigure 0 -weight 1