Make an animated widgetbutton #63
Labels
audience - user
affects users
effort - few days
a few days
good first issue
good for newcomers
impact - high
has difficult or onerous workaround
reach - medium
affects several users weekly
skill - ui
skill tag
skill level - medium
skill level tag
For some cases, it would be nice to have a button who's icon is animated. This can be because you want to notify to the user a transient state (in my case, something is moving) or attract their attention for an action (in my case, a fault that needs to be fixed manually).
I have made a blinkable button using a thread that regularly
fire
s anEvent.Event()
. This works nicely (see at the end a rough example), but I don't like this design which is quite twisted. I guess the button widget itself should handle animation.As I see it, the easiest would be a
Animatedwidgetbutton
who could have among its parameters aicon|List[icon]
and atransition_time
. TheList[icon]
would store the different animated frames of the button, that would be animated at atransition_time
rate. Ificon
is fed rather than aList[icon]
, then the button is not animated.How to do it might be through a thread mechanism as in my example (but not in the
Converter
, of course), but here this is outside of my expertise to give an advice.example of a blinkable button using a
Converter
:The text was updated successfully, but these errors were encountered: