Re: Scrolling a window

[email protected] (Jeff Hobbs)
Newsgroups perl.tcltk
Message-ID <[email protected]>
On 02/03/2010 3:39 PM, Swingle David-QWHM86 wrote:
> Another related question:  how do I get the initial size to be just
> large enough so that there are not scroll bars needed?  So, for the
> sample in the last post, how would I get it so the window is initially
> large enough to show all the (400) buttons?

winfo reqwidth/height on the frame once populated and after an update 
idletasks may give you the right size.  Make sure you check for 
reasonable maximums though.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.