[Tkinter-discuss] Re: Tkinter screen saver?

Fredrik Lundh fredrik at pythonware.com
Sun Sep 26 09:53:38 CEST 2004

<dblank at mainline.brynmawr.edu> wrote:

> I'm wondering if I can get Tkinter to make a window that covers the whole
> screen so that we can have a Python-based screen saver?

try this:

from Tkinter import *

root = Tk()

w, h = root.winfo_screenwidth(), root.winfo_screenheight()
root.geometry("%dx%d+0+0" % (w, h))



More information about the Tkinter-discuss mailing list