Here is a sample of my script:
import tkinter from tkinter import * import random class Program: def __init__(self): self.canvas = tkinter.Canvas(width=1200, height=500, bg="black") self.canvas.pack() ... ... # some other class methods, not important for this # after one of those methods the part of my canvas changes color to grey and here should appear my animation, consisting of 4 images (win_screen1, win_screen2,...)
This animation should roll this pictures for few seconds, until clicking on a specific button. I mentioned my imports and basics of
__init__() method to show, what should this animation use (so it shouldn´t require any other imports).
Here is what I tried:
for i in range(100): for j in range(1,5): self.canvas.create_image(400, 200, image=win_screen{j})