| Deutsch English Français Italiano |
|
<20240703135938.0093ccb5@lud1.home> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!feeds.phibee-telecom.net!2.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Luc <luc@sep.invalid> Newsgroups: comp.lang.tcl Subject: How do I pack a megawidget? Date: Wed, 3 Jul 2024 13:59:38 -0300 Organization: A noiseless patient Spider Lines: 39 Message-ID: <20240703135938.0093ccb5@lud1.home> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Wed, 03 Jul 2024 18:59:39 +0200 (CEST) Injection-Info: dont-email.me; posting-host="0f80b7f390422deb4886b3704ebb7b0b"; logging-data="2397141"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LlacQenXbGtL2TSf+pRppQeyvJNUTO1o=" Cancel-Lock: sha1:A4lZp6x7SQhq09jqQ7NNHhCEPnw= Bytes: 2295 I know y'all gonna hate this question because I'm not showing much code, but I am really more interested in concepts than code. I made a package. It's supposed to be a megawidget. I haven't snitted it yet. I can't snit it without understanding where I am supposed to go with it. So here is the problem. package require giggles set of $::w.outerframe frame $of -height 100 pack $of -fill both -expand 1 set gg $of.giggles ::giggles::giggles $gg -guifont "Arial 14" -geometry pack pack $gg -fill both -expand 1 And it works. The prototype megawidget is inserted into my test parent application. The problem is, commenting out the last 'pack' line makes no difference. The megawidget still shows. (Also, funny that apparently it's redundant but nothing clashes.) And of course that is not standard widget behavior. Of course, I am packing everything in the megawidget. But if I don't, then what? I can't just leave it hanging because if I do, then the author of the parent widget will have to inspect the code of the megawidget to figure out what he is supposed to pack to get it all working which, again, is not standard widget behavior, it's actually pretty stupid. I have to expose something. Something that will take the 'pack' command from the parent application and make the entire megawidget come together, with all of its components. How do I do that? -- Luc >>