Add comments in UiElement.py
This commit is contained in:
parent
569128763b
commit
f0d6f5f8e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user