Use Entry : TextField Entry « GUI Tk « Python






Use Entry

Use Entry
 

from Tkinter import *

root = Tk()

root.title('Entry')
Label(root, text="Label:").pack(side=LEFT, padx=5, pady=10)
e = StringVar()
Entry(root, width=40, textvariable=e).pack(side=LEFT)
e.set("'Text Text Text Text'")
root.mainloop()


           
         
  








Related examples in the same category

1.Entry (Text field) with a label inside a border panelEntry (Text field) with a label inside a border panel
2.Entry: TextField: get entered valueEntry: TextField: get entered value
3.Entry: enter eventEntry: enter event
4.Use Entry widgets directly and layout by rowsUse Entry widgets directly and layout by rows
5.Entry Fields in a rowEntry Fields in a row
6.Get value from EntryGet value from Entry
7.Set textvariable for Entry
8.Bind enter key to Entry
9.implement a very simple calculator, just evaluating Python math
10.Attached variables
11.Entry Field in a model dialogEntry Field in a model dialog