Add comments in UiElement.py

This commit is contained in:
Michał Czekański 2020-05-14 21:10:09 +02:00 committed by Marcin Kostrzewski
parent 8df63bb607
commit bb46f56ace

View File

@ -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