Anyone else find Tk akward?

David Konerding dek at nano.ucsf.edu
Sat Aug 14 20:53:48 EDT 1999


On Thu, 12 Aug 1999 15:42:03 -0700, Orlando Vazquez <ovazquez at sprint.ca> wrote:
>Is it just me, or is the way Tk organizes things on the window someone
>weird? I'm just starting to play around with it, and it has me puzzled.
>Wouldnt it be a lot easier to just use a coordinte system?
>For example put a button at (0,0) with length 10 and width 20 etc..
>Are there any reasons why it _has_ to be this way?

There are several geometry managers for Tk.  There's place, pack, and grid.
I liked grid because it gave me direct control over subwidget placement.
Since you can nest frames with different geometry managers, for example,
a grid frame with pack frames inside of it,  you've got the best of both
worlds.

Dave
-- 
--------------------------------------------------------------------------------
Email: dek at cgl.ucsf.edu    David Konerding     WWW: http://picasso.ucsf.edu/~dek
--------------------------------------------------------------------------------
Snail: Graduate Group in Biophysics
Medical Sciences 926, Box 0446
University of California
San Francisco, CA 94143




More information about the Python-list mailing list