http://qs1969.pair.com?node_id=942239


in reply to Re^5: resizing problem with Tk appl using PackForget
in thread resizing problem with Tk appl using PackForget

sure; I don't blame anyone in being a monkey. Just thought adding more code would clobber...

I tried the $mw->geometry(undef); this works great when hiding the to be hidden widgets. So far so good.
But then when restoring the hidden, they are restored to their 'required' width and height, rather than those they had when they were 'packForgotten'.
This seems to be the effect of the $mw->geometry(undef); call

There is a diff between:
$mw_w = $mw->width; $mw_h = $mw->height;
and
$mw_w = $mw->reqwidth; $mw_h = $mw->reqheight;
After many tries I found a solution (?) by remembering the geometry of the MW when hiding:
$mw_geom = $mw->geometry();
and restoring this when re-packing:
$mw->geometry($mw_geom);
So I can add that to my code in some way or another. Only thing is that I do not understand it yet ;-(