[Tutor] Creating a widows screensaver with python....

kromag@nsacom.net kromag@nsacom.net
Tue, 24 Apr 2001 15:00:58 -0700 (PDT)


kromag@nsacom.net said: 

Once again: Try and code a little bit before you post.. <blush>

I got this far:

from Tkinter import *
root=Tk()
tux=PhotoImage(file='\windows\desktop\tux.gif')
w=Label(root, image=tux)
w.pack()
root.mainloop()

Which squirts a penguin into a window for me. If I'd've tried for 20 
minutes I woul't have wasted Ye Bandwidth...

Anyway, my next goals are:

1. Stripping off the standard toolbar, frame and button widgets from the 
window, leaving only the image.

2. Making the window close upon keyboard or mouse input.

3. Blacking out the entire screen except for the image.

_Now_ I need some actual input. I have been looking through the excellent 
"Introduction to Tkinter" but can find nothing that clues me to any of these. 
Any suggestions?

> Hey all.
> 
> I have a desire to put a simple bitmap on the screen of a windows box. Has 
> anyone got experience/example code for creating *.scr files with python?
> 
> I seem to recall that numpy has some sort of bitmap fun in it's tutorial. Am 
I 
> lurching in the right direction?
> 
> Thanks!
> 
> d
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>