From d223cfc1f53af444dd4629bc5a5bbd39c7bbdd1c Mon Sep 17 00:00:00 2001 From: IQBit Date: Mon, 5 Jun 2023 16:47:01 +0200 Subject: [PATCH] Optimize sprite dependencies --- sprite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sprite.py b/sprite.py index a42188f..b9d8a00 100644 --- a/sprite.py +++ b/sprite.py @@ -1,12 +1,12 @@ # Template for sprite items -import tkinter as tk +from tkinter import Canvas from math import sqrt from time import sleep class Sprite: - def __init__(self, stage: tk.Canvas, x: int, y: int, costumes: list, start_health: float = 1): + def __init__(self, stage: Canvas, x: int, y: int, costumes: list, start_health: float = 1): self.stage = stage self.health = start_health self.costumes = costumes