Sujet : Re: pack or grid (or the other way around)?
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 16. Jan 2025, 11:34:34
Autres entêtes
Message-ID : <ygabjw7cait.fsf@akutech.de>
References : 1
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Luc <
luc@sep.invalid>
| I am working on a package that I guess would be considered a megawidget
| and I vaguely remember reading somewhere that widgets (or was it
| applications?) that use pack cannot contain widgets that use grid, or
| maybe it was the other way around, which means that if my megawidget
| uses pack, nobody would be able to use it inside another widget (or
| would that be an application?) that already uses grid, or maybe the
| other way around, well, you get the idea.
In addition to what Rich wrote, here is what you *cant* do:
frame .f
label .f.l1
label .f.l2
pack .f.l1
grid .f.l2
=> error: cannot use geometry manager grid inside .f which already has slaves managed by pack
grid .f.l2
pack .f.l1
=> error: cannot use geometry manager pack inside .f which already has slaves managed by grid
But .f itself can be managed by either grid or pack, regardless of what
you use to pack/grid widgets 'inside' .f
HTH
R'