robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
457 stars 116 forks source link

animated gifs / image animation inside easygui #29

Open horstjens opened 9 years ago

horstjens commented 9 years ago

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)

Titters96 commented 9 years ago

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

I would appreciate any help-thanks in advance, Mark