我有一个python tkinter应用程序,我想要全屏运行。当我取消注释overrideredirect时,窗口管理器(Gnome,Linux)将无法将击键转发给应用程序。python tkinter overrideredirect;无法接收按键(Linux)
(片段,蟒蛇)
# make it cover the entire screen
w, h = master.winfo_screenwidth(), master.winfo_screenheight()
self.root.geometry("%dx%d+0+0" % (w, h))
self.root.focus_set() # <-- move focus to this widget
self.root.bind('<Escape>', self.root.quit())
#self.root.overrideredirect(True)
我发现窗口::或包的Tcl/Tk,这是应该解决这个bug。我将如何去安装这个,并且可以在我的python应用程序中使用它?
http://www.binarism.com/tk/window/or/
http://www.binarism.com/tk/window-or-0.1.1.tgz
一些信息在这里:http://wiki.python.org/moin/How%20Tkinter%20can%20exploit%20Tcl/Tk%20extensions – 2011-08-17 10:48:05