focus problem with full-screen in Tkinter

Frank Niessink niessink at serc.nl
Tue Jul 15 10:44:01 EDT 2003


On Mon Jul 14 11:56:23 2003, Michele Simionato wrote:
> I have a problem with full screen windows in Tkinter.
> Here is a minimal script showing the problem:
> 
> from Tkinter import *
> root=Tk()
> w, h = root.winfo_screenwidth(), root.winfo_screenheight()
> root.geometry("%dx%d+0+0" % (w, h))
> #root.overrideredirect(1)
> root.focus()
> root.bind("<q>",lambda e: root.destroy())
> root.bind("<1>",lambda e: root.destroy())
> root.mainloop()

Both 'q' and mouseclick work for me, both with and without the
comment. 

Python 2.2.3 (#1, Jun 19 2003, 12:10:13) 
[GCC 3.2 20020927 (prerelease)] on cygwin

Cheers, Frank
-- 
It was real. At least, if it wasn't real, it did support them, and as that is
what sofas are supposed to do, this, by any test that mattered, was a real 
sofa.
	-- Douglas Adams, 'Life, the Universe, and Everything'





More information about the Python-list mailing list