Tkinter setting alpha

Jonathan Hayward christos.jonathan.hayward at
Fri Oct 3 22:21:22 CEST 2008

I'm trying to make a Tkinter/Python port of the demo at
, which has adjustable alpha under Windows and (I think) MacOS.

I'm not quite sure how to port:

    wm attributes . -alpha [expr {$alphaLevel + 0.05} ]
    set AlphaLevel [wm attributes . -alpha]

The goal is to have a screen pop that fades in and out at least on
Windows, and it would be nice if it could fade on other platforms
(including my preferred Linux).

Two questions:

1: Is Tkinter a good choice, or are there other libraries that are
easier and/or will allow cross-platform GUI work with (ideally) fading
in and out?

2: If I go with Tkinter, how can I port lines like those quoted above
to be able to get and set a Frame's alpha value?

-- Jonathan Hayward, christos.jonathan.hayward at

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from

More information about the Python-list mailing list