> You aren't asking the right widgets for the info. Simply add > this before the MainLoop: > > Tkx::update('idletasks'); > Tkx::wm_geometry($mw, Tkx::winfo_reqwidth($subf) . "x" . > Tkx::winfo_reqheight($subf)); > > Jeff >
Ok, that works, almost. Thanks! What I would really like is for the window to have no scrollbars when it is initially created. Only if I shrink the window would I want the scrollbars. Is there a way to do that? I've never seen Tkx::update('idletasks'), where in the documentation would I find that? Is there a difference between Tkx::winfo_reqwidth($subf) and Tkx::winfo('reqwidth', $subf)? They both seem to work, is this just "there's more than one way to do it"? David