Miguel P
Miguel P

Reputation: 1292

TKinter Python - Set active window when withdrawed

Is there a way to set the withdrawed tk window to the top level, i.e. the active window, even though its withdrawed?

Its so it will listen to keys.

Upvotes: 0

Views: 278

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 385910

It can only respond to keyboard events if it has the focus. If it is withdrawn it cannot have the keyboard focus. So, no, you cannot have a withdrawn window be the active window.

Upvotes: 1

Related Questions