Skip to content

Instantly share code, notes, and snippets.

@daleathan
Forked from TravisJoe/tkinter_full_test.py
Last active August 29, 2015 13:56
Show Gist options
  • Save daleathan/9283301 to your computer and use it in GitHub Desktop.
Save daleathan/9283301 to your computer and use it in GitHub Desktop.
from Tkinter import *
root = Tk()
w = Label(root, text="Hello, world!")
root.overrideredirect(True)
root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight()))
root.focus_set() # <-- move focus to this widget
root.bind("<Escape>", lambda e: e.widget.quit())
w.pack()
root.mainloop()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment