exact x,y positioning of a Tk widget

Paul Simmonds psimmo60 at hotmail.com
Fri Aug 30 05:36:28 EDT 2002


revyakin at yahoo.com (revyakin) wrote in message news:<fa06e058.0208291710.3f392a8d at posting.google.com>...
> Is there a way to position a widget with exact x,y coordinates,
> instead of just justifying to the left, right, top and bottom?

Yep, use the .grid method - syntax goes:
   widget.grid(<options>)

This sets up a 2d grid in your window that you can reference. For
details on the options try the TKinter Reference... document you can
access from this page:
http://www.nmt.edu/tcc/help/lang/python/tkinter.html

Hope this helps you- it certainly helped me lots
Regards,
Paul



More information about the Python-list mailing list