On Saturday, February 5, 2022 at 2:31:05 PM UTC-8, Erik Leunissen wrote:
Just do:
% package require Tk
8.6.12
% frame .f1
.f1
% frame .f1.f2
.f1.f2
% pack .f1 -in .f1.f2
And notice that you just packed a widget inside its own child.
Let your fantasy carry you away while thinking of use-cases ...
Erik Leunissen
--
elns@ nl | Merge the left part of these two lines into one,
xs4all. | respecting a character's position in a line.
Just for kicks I took the challenge. Only difference is the interp I used is 8.7a6
The results:
% package require Tk
8.7a6
% frame .f1
.f1
% frame .f1.f2
.f1.f2
% pack .f1 -in .f1.f2
can't put ".f1" inside ".f1.f2": would cause management loop
%
So it doesn't fly. Don't know if the error message is new in 8.7 vs. 8.6.x. In any case it sure makes sense.
JRA
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)