From bb29d0cd1f9e0c29ffffa3b5769809d038d2e837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Fri, 3 Apr 2020 22:55:22 +0200 Subject: [PATCH] Make UiElement inherit from pygame.sprite.Sprite --- src/ui/UiElement.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ui/UiElement.py b/src/ui/UiElement.py index a398959..6ec18b0 100644 --- a/src/ui/UiElement.py +++ b/src/ui/UiElement.py @@ -1,2 +1,7 @@ -class UiElement: - pass +import pygame + + +class UiElement(pygame.sprite.Sprite): + def __init__(self, rect): + super().__init__() + self.rect = rect