My gif is freeze '-' (not displayed/animated, but works out of tkinter). I tried so hard all other ways but still not work, the code:
import tkinter as tk
from tkinter import *
def animate(self):
global pic
pic = PhotoImage(file="/home/arnaldo/Desktop/b.gif")
print("called1")
self.canvas = Canvas(width=350, height=233, bg='white')
self.canvas.pack(expand=YES, fill=BOTH)
self.canvas.create_image((0, 0), image=pic, anchor=NW)
class run(tk.Tk):
def __init__(self, *args, **kwargs):
tk.Tk.__init__(self, *args, **kwargs)
animate(self)
run().mainloop()