import tkinter as tk
win=tk.Tk()
win.title=('python')
win.resizable(True,True)
tk.Label(win, text='why').grid(column=0,row=0)
def button():
tk.Text
win.mainloop()
What I got: Image
What I expected: The title bar is "python" and not "tk"
I am unsure what I did wrong here
You put an extra =
sign win.title=('python')
It is simply
win.title('python')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.