From bb46f56ace1fca93e3920e9f8f274ee74a0bc73c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Thu, 14 May 2020 21:10:09 +0200 Subject: [PATCH] Add comments in UiElement.py --- src/ui/UiElement.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ui/UiElement.py b/src/ui/UiElement.py index 6ec18b0..5ea5380 100644 --- a/src/ui/UiElement.py +++ b/src/ui/UiElement.py @@ -2,6 +2,12 @@ import pygame class UiElement(pygame.sprite.Sprite): - def __init__(self, rect): + rect: pygame.Rect + + def __init__(self, rect: pygame.Rect): + """ + Creates UiElement object. + :param rect: UiElement will be drawn on this rectangle. + """ super().__init__() self.rect = rect