python tkinter overrideredirect; cannot receive keystrokes (Linux)

前端 未结 2 1827
悲哀的现实
悲哀的现实 2020-12-06 14:25

I have a python tkinter application which I want to run full screen. When I uncomment overrideredirect, the window manager (Gnome, Linux) will not be able to forward keystro

2条回答
  •  抹茶落季
    2020-12-06 14:50

    This works for the use case where you're using overrideredirect to get fullscreen, which is somewhat common:

    #self.root.overrideredirect(1)
    self.root.attributes('-fullscreen', True)
    

提交回复
热议问题