[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()
root.config(bg="red")

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

root.mainloop()

</F> 





More information about the Tkinter-discuss mailing list