In Tkinter how do i remove focus from a widget?

后端 未结 6 897
余生分开走
余生分开走 2021-02-08 13:37

I\'d like to remove focus from a widget manually.

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-08 14:32

    So the question may be a duplicate here, but the answer from @Bryan Oakley works perfectly for me in Python 3.8

    root.focus_set()
    

    Too easy...

提交回复
热议问题