Tkinter setting alpha

  • Thread starter Jonathan Hayward
  • Start date
J

Jonathan Hayward

I'm trying to make a Tkinter/Python port of the demo at http://wiki.tcl.tk/10515
, 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, (e-mail address removed)

** 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 http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top