views:

63

answers:

3

Hi!

I'm using wxPython bindings for wxWidgets. Is it possible to create custom-shaped window from PNG image and in count alpha-channel? Take a look at VS2010 splash screen to see what I mean:

alt text

Highlighted zones (rounded corner and shadow) are not sharp, they use alpha-channel to look smooth.

Update: I want not only custom shape, but smooth custom shape

A: 

If you want a Splash screen you can use the AdvancedSplash class which supports masking.

Shay Erlichmen
According to it's doc, "AdvancedSplash frame will have the shape defined only by non-transparent pixels". And that means no partial transparency, no smooth shape.
Frantic
A: 

Have a look at the shapedwindow from the docs and demos of wxpython

RSabet