[python-win32] Transparent Windows - API failure

Metz, Bobby W, WWCS bwmetz at att.com
Thu Jul 6 23:54:46 CEST 2006


Thanks Tim & Mark.  I was guessing Tk too but hoping it would work since
the Tkinter alpha parameter for toplevel windows doesn't work and it
seems sparsely documented.  I was hoping it was something wrong with the
way I was calling it.  I'll hit up the tkinter list to see if others
have had better luck.

Thanks,

Bobby

-----Original Message-----
From: python-win32-bounces at python.org
[mailto:python-win32-bounces at python.org]On Behalf Of Tim Roberts
Sent: Thursday, July 06, 2006 9:20 AM
To: python-win32 at python.org
Subject: Re: [python-win32] Transparent Windows - API failure


On Wed, 5 Jul 2006 18:32:30 -0500, "Metz, Bobby W, WWCS"
<bwmetz at att.com> wrote:

>All,
>	This is my first attempt with setting transparent backgrounds,
>so probably simple error.  I've had some success making Notepad
>transparent, but am getting no results against a Tkinter window.  Also,
>any workaround to using SetLayeredWindowAttributes on Win2000?  I
>noticed in the docs it's not in win32gui to prevent issues with NT?
>


SetLayeredWindowAttributes depends on having the target window respond
in a standard way to the normal window messages.  Tk does ALL of its own
drawing -- every single pixel.  It doesn't use the native OS UI services
for anything.  My guess is THAT'S why SetLayeredWindowAttributes fails.

You may have to wait until Vista to get transparent Tk windows.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
Python-win32 mailing list
Python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32


More information about the Python-win32 mailing list