Change Frame title : Frame : GUI Tk PYTHON examples


PYTHON examples » GUI Tk » Frame »

 

Change Frame title


Change Frame title


import Tkinter
root = Tkinter.Tk()
var = Tkinter.StringVar()
entry = Tkinter.Entry(root, textvariable=var)
entry.focus_set()
entry.pack()
var.set(root.title())
def changeTitle(): root.title(var.get())
Tkinter.Button(root, text="Change Title", command=changeTitle).pack()
Tkinter.mainloop()

           
       



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo GUI Tk
» Frame