Key action : Key Action : Event PYTHON examples


PYTHON examples » Event » Key Action »

 

Key action


Key action: set Label text


import Tkinter

root = Tkinter.Tk()
tv = Tkinter.StringVar()
Tkinter.Label(textvariable=tv).pack()
Tkinter.Entry(textvariable=tv).pack()
tv.set('Welcome!')
Tkinter.Button(text="Exit", command=root.quit).pack()

Tkinter.mainloop()
print tv.get()

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo Event
» Key Action