Re: focus problem with full-screen in Tkinter

Discussion in 'Python' started by Frank Niessink, Jul 15, 2003.

  1. 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'
    Frank Niessink, Jul 15, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bredahl jensen

    Causing IE to display in full screen mode.

    Bredahl jensen, Feb 1, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    4,705
    Ken Cox [Microsoft MVP]
    Feb 1, 2005
  2. Jensen bredal

    Full screen viewing with internet explorer

    Jensen bredal, Feb 26, 2005, in forum: ASP .Net
    Replies:
    9
    Views:
    545
    Jensen bredal
    Feb 28, 2005
  3. Samuel R. Neff
    Replies:
    2
    Views:
    583
    bradley
    Jun 10, 2005
  4. Replies:
    1
    Views:
    165
    Ken Bloom
    May 28, 2007
  5. Roger
    Replies:
    3
    Views:
    311
Loading...

Share This Page