Tkinkter - how can I control where the main widget appears

D

DoubleM

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,462
Latest member
ChanaLipsc

Latest Threads

Top