easygui icon indicating copy to clipboard operation
easygui copied to clipboard

animated gifs / image animation inside easygui

Open horstjens opened this issue 11 years ago • 1 comments

wished by all my underage rpg-programming students:

the possibility to display ether animated gifs instead of the image inside a button/messagebox, or the possibility to play an animation inside a buttonbox by providing a list of images / list of pairs (image, displaytime in seconds)

def msgbox(msg="", title="", ok_button="ok", image=None, root=None, animation=[("image1.png", 0.1), ("image2.png",0.1), ("image3.png",0.5)], cycle_animation=True )

The animation should stop as soon as a button in the window is clicked. The animation should not loop if cycle_animation parameter is set to False. animation would only work if image is set to None.

For game programming, this feature would be most needed for buttonbox and msgbox (and, if possible, for gridbox/multi-image-box)

horstjens avatar Dec 24 '14 06:12 horstjens

Tried this but received the following error: TypeError: msgbox() got an unexpected keyword argument 'animation'

I would appreciate any help-thanks in advance, Mark

Titters96 avatar Feb 26 '15 15:02 Titters96