edpatterson
IS-IT--Management
- Feb 24, 2005
- 186
I am using Active State Perl with the Tk Module
I am haviing a hard time grasping the placement of widgets. It seems they all either end up on top of each other, alligned doen the center or one of the sides.
I figured for practice I would create the simple layout below using lables, entry boxes and buttons:
[tt]
# +------------------------------------+
# | +-----------------------+ |
# | To:| | |
# | +-----------------------+ |
# | +-----------------------+ |
# | From:| | |
# | +-----------------------+ |
# | Message:+-----------------------+ |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | +-----------------------+ |
# | +----+ +------+ |
# | |Send| |Cancel| |
# | +----+ +------+ |
# | |
# +------------------------------------+
[/tt]
I can create any of the objects, and I can even get the To: + entry box on one line and the cancel button below. But it goes haywire when I add other widgets.
Ed
I am haviing a hard time grasping the placement of widgets. It seems they all either end up on top of each other, alligned doen the center or one of the sides.
I figured for practice I would create the simple layout below using lables, entry boxes and buttons:
[tt]
# +------------------------------------+
# | +-----------------------+ |
# | To:| | |
# | +-----------------------+ |
# | +-----------------------+ |
# | From:| | |
# | +-----------------------+ |
# | Message:+-----------------------+ |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | | | |
# | +-----------------------+ |
# | +----+ +------+ |
# | |Send| |Cancel| |
# | +----+ +------+ |
# | |
# +------------------------------------+
[/tt]
I can create any of the objects, and I can even get the To: + entry box on one line and the cancel button below. But it goes haywire when I add other widgets.
Ed