Python 3.x - toggling fullscreen in tkinter
问题 So far, I have a command that makes my window fullscreen. Now, predictably, I want to be able to exit fullscreen also. This is the code I have: def toggFullscreen(self, win): def exitFullscreen(event=None): win.withdraw() win.deiconify() win.overrideredirect(False) win.geometry('1024x700') w = win.winfo_screenwidth() h = win.winfo_screenheight() win.overrideredirect(True) win.geometry('%dx%d+0+0' % (w, h)) win.focus_set() win.bind('<Escape>', exitFullscreen) But the issue is that I can't get