Tyler McAtee
Tyler McAtee

Reputation: 300

Is there a way for an entry widget to automatically be selected

I have a popup window with an entry widget using Tk, is there a way for the cursor to already be flashing when it pops up, so that the user doesn't have to click the entry widget to enter text?

Upvotes: 1

Views: 68

Answers (1)

Joel Green
Joel Green

Reputation: 920

You can use .focus()

widget_name.focus()

Upvotes: 3

Related Questions