Tkinkter - how can I control where the main widget appears

DoubleM mmoum at woh.rr.com
Tue Nov 4 19:55:57 EST 2003


Given the following trivial program:

from Tkinter import *

root = Tk()
l = Label(root, text = "Hi There")
l.pack()
root.mainloop()


How can I control where the main window appears on the screen?  Ideally, I
would like to center it.

Thanks for your help,
Mike





More information about the Python-list mailing list