[python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app?

Sylvain Fauveau (apli-agipa) info at apli-agipa.com
Wed Mar 24 08:41:16 CET 2010


Not tested, but :

Google: splash screen tkinter

=> http://code.activestate.com/recipes/534124-elegant-tkinter-splash-screen/

tkinter is included with python.

Vernon Cole a écrit :
> Malcolm:
>
> I used to have exactly what you need. Unfortunately, when I checked 
> just now, I find that I failed to "lift" a copy of the source code 
> when I left the place where I wrote it. "It" was a command line 
> utility which accepted as arguments the name of a .jpg file and the 
> number of seconds to display it before exiting. As it happens, mine 
> was written in wxPython. Any of the previous suggestions would be a 
> good start. The point is that you have your console program run the 
> splash as a separate (non-console) program -- using a "Run and don't 
> wait" OS call -- so that the GUI stuff is not complicating your 
> console code.
> My application displayed a cartoon of a human skeleton looking at a 
> computer display which said "Please Wait." It was placed at the 
> beginning of a long and complicated automatic login script for a 
> dedicated workstation and displayed for 20 seconds. It completely 
> eliminated anxious users trying to poke at the workstation before it 
> was ready.
> Yes, the extra .exe and the .jpg will add a little weight to your 
> distribution, but storage is cheap these days, and user satisfaction 
> is worth it, IMHO.
> --
> Vernon
>
>
>     On 1:59 PM, python at bdurham.com <mailto:python at bdurham.com> wrote:
>>     Is there a Windows API call I can use to display a BMP or a PNG
>>     file in a window centered on a user's display? This function
>>     would be called from a console app to display a splash screen.
>>     Motivation: I would like some of our customer facing Python
>>     console utilities to display a splash screen. I don't need the
>>     complexity of a full GUI framework like wxPython or pyQT and
>>     hopefully I can avoid the need to use a full library like PIL.
>>     Thank you,
>>     Malcolm
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> python-win32 mailing list
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>   


-- 

*Sylvain Fauveau*
Apli-Agipa
Tél: 03-26-58-18-28
Logo d'APLI-AGIPA
--Pensez à la nature et n’imprimez cet email que si nécessaire--

-------------- next part --------------
A non-text attachment was scrubbed...
Name: info.vcf
Type: text/x-vcard
Size: 176 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100324/decdf892/attachment.vcf>


More information about the python-win32 mailing list