JShoe
JShoe

Reputation: 3428

Python Tkinter Root Title doesn't work

I can't seem to title my windows. They all have the title "Tk".I believe my code is correct, so correct me if this is wrong...

from Tkinter import * 
root = Tk()
root.title="Title"
root.mainloop()

The title is still Tk(). Could I maybe from Tkinter import Tk as MyTitle?

Upvotes: 6

Views: 8921

Answers (1)

sampwing
sampwing

Reputation: 1268

root.title("Title")

Try that, its a method you invoke and pass in the parameter.

Upvotes: 21

Related Questions