Deutsch   English   Français   Italiano  
<ygabjw7cait.fsf@akutech.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Ralf Fassel <ralfixx@gmx.de>
Newsgroups: comp.lang.tcl
Subject: Re: pack or grid (or the other way around)?
Date: Thu, 16 Jan 2025 11:34:34 +0100
Lines: 28
Message-ID: <ygabjw7cait.fsf@akutech.de>
References: <20250115235611.5613ef18@lud1.home>
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: individual.net ZqRyTKqs6TEMkTKYAFCXpQP1H6q19ic/bw1pqCQVUEJPsyTVA=
Cancel-Lock: sha1:a4xEFAXXO9oqXNiB/onzs4orpEw= sha1:b7r2dzh2XffCMRZRoT8SJGrpS1A= sha256:8pxN/RNkpdQmN4boDzeEqX2ZDHCMcF/Fs8SKOVln8y0=
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Bytes: 1676

* 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'