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
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
There is a diff between:
$mw_w = $mw->width;
$mw_h = $mw->height;
$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:
So I can add that to my code in some way or another. Only thing is that I do not understand it yet ;-(