我有一個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