This script works fine, however when i try to put this code in tkinter window it does not work, i have used import tkinter as tk.
import pyglet animation = pyglet