[Israel.pm] Tk Layout maddness
dovl at freescale.com
Fri Nov 3 01:01:49 PST 2006
There are a couple of issues here:
1. If you want to have other widgets under this one, you can pack them
on the bottom, stretch them on the X axis and pack them before this
other, problematic, widget.
2. The best source for Tk documentation is O'Reilly. The ActiveState
distribution comes with documentation as well.
3. Try using the -anchor option
4. Remember that the inner widget can only be placed inside the parent
widget. As such, if the outer frame is not where you expect it to be,
neither will the problematic one.
DSP SoC System and Applications Engineer,
Network and Computing Systems Group
Freescale Semiconductor Israel
The information contained in this email is classified as:
[ ] Freescale General Business Information
[ ] Freescale Internal Use Only
[ ] Freescale Confidential Proprietary
[x] Personal Memorandum
From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
Behalf Of Shmuel Fomberg
Sent: Thursday, November 02, 2006 22:51
To: perl at perl.org.il
Subject: [Israel.pm] Tk Layout maddness
I was given a task to write a GUI for a program, so I decided to learn
and do it the Tk way.
Quite nice, actually. I have only one problem, and this is the layout
Does anyone know an in-depth explanation on the net?
The problem that I stucked with: I have a frame that have two labels
inside: on the left and on the right.
The frame itself is inside a bigger frame, and it insist on being in the
Now, I don't want to declare it "left", because I add other widgets
In short, I want my frame to stretch horizontally, (and I already tried
So my inner widgets will arrive to their proper places.
Perl mailing list
Perl at perl.org.il
More information about the Perl