olesk75 / animatedgif Goto Github PK
View Code? Open in Web Editor NEWPython class to animate a GIF using only tkinter
License: MIT License
Python class to animate a GIF using only tkinter
License: MIT License
Well, it certainly works better than anything else I've seen (since I've not found anything else that works). It doesn't render some gifs right, though; like, I think some gifs only update the part of the frame that changed. AnimatedGif only displays that part (and the rest is grey).
when i use the code as you mentioned nothing happens i just dont know where the gif is playing can you help me with this?
you can add param background=None
...
def __init__(self, root, gif_file, delay=0.04,background="white"):
tk.Label.__init__(self, root,background=background)
...
P.S. Thanks to your repository, Thoru is dancing in my bottom left
Not really an issue, just letting you know that I tested this on Python 2.7 and it is working great, thanks!
Jakob Skjelten,
the animation start's very well, but the animation is not stopping.
root.mainloop()
Stop Animate
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1545, in call
return self.func(*args)
File "AnimatedTest.py", line 30, in buttonPhotoClick
lbl_with_my_gif.stop() # Setting stop flag, which ends the update loop (animation)
TypeError: 'bool' object is not callable
I realize that this is similar to several other issues, however in the past they were related to Python 2; however, I am getting this error with Python 3.7.6.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.