Different Shaped Windows?

Robin Becker robin at jessikat.demon.co.uk
Tue Sep 14 06:48:25 EDT 1999


In article <37DE0F7E.714FD6F7 at megsinet.net>, David Oppenheimer
<davidopp at megsinet.net> writes
>Dear Group,
>
>From a posting in another  newsgroup, I am told that you can:
>
>=====================================
>"create windows that have different shapes than the
>ordinary "square" ones. You can do than thanks to the "regions" : What
>does
>that mean?
>In Win32 you can define regions and than assign them to already created
>windows. For example:
>
>SetWindowRgn(handle, CreateEllipticRgn(0,0,100,200), true)
>
>will create an elliptic window. MSDN has more info about regions. You
>can apply all sorts of operations to your regions like intersection,
>addition, etc. to obtain different shapes.
>=================================================
>
>Question is:  Can this same task (creating a non rectangular window) be
>accomplished with any of the GUI toolkits available to Python such as
>Tkinter or wxPython?
>
>David O.
>
>
>
there's a Tk extension called TkTrans which works with 8.0.5 at least to
create shaped toplevels.
-- 
Robin Becker




More information about the Python-list mailing list