Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 883
JShoe Avatar asked Aug 04 '11 22:08

JShoe


1 Answers

root.title("Title")

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

like image 99
sampwing Avatar answered Oct 20 '22 17:10

sampwing