tkinter entry focus

Solutions on MaxInterview for tkinter entry focus by the best coders in the world

showing results for - "tkinter entry focus"
Bilel
30 Aug 2018
1entry = Entry(root).pack()
2entry.focus()
Nicolò
11 May 2018
1from Tkinter import *
2root = Tk()
3frame=Frame(root,width=100,heigh=100,bd=11)
4frame.pack()
5label = Label(frame,text="Enter a digit that you guessed:").pack()
6entry= Entry(frame,bd=4)
7entry.pack()
8entry.focus()
9button1=Button(root,width=4,height=1,text='ok')
10button1.pack()
11
12root.mainloop()