开发者

Python Tkinter Root Title doesn't work

I can't seem to title my windows. They all have the title "Tk".I believ开发者_高级运维e 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?


root.title("Title")

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜