Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

request foucus tkinter widget

from Tkinter import *
root = Tk()
frame=Frame(root,width=100,heigh=100,bd=11)
frame.pack()
label = Label(frame,text="Enter a digit that you guessed:").pack()
entry= Entry(frame,bd=4)
entry.pack()
entry.focus()
button1=Button(root,width=4,height=1,text='ok')
button1.pack()

root.mainloop()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #request #foucus #tkinter #widget
ADD COMMENT
Topic
Name
2+7 =