Builded prototype of labels class
This commit is contained in:
19
modules/Labels.py
Normal file
19
modules/Labels.py
Normal file
@@ -0,0 +1,19 @@
|
||||
import pygame
|
||||
|
||||
class Label:
|
||||
def __init__(self, surface:pygame.Surface, is_rect=False, pos=tuple) -> None:
|
||||
self._surface = surface
|
||||
self._is_rect = is_rect
|
||||
self._pos = pos
|
||||
|
||||
|
||||
def input_label(self):
|
||||
pass
|
||||
|
||||
def draw(self):
|
||||
if(self._is_rect):
|
||||
print("Zeichne ein Rechteck")
|
||||
|
||||
else:
|
||||
print("Zeichne Surface!")
|
||||
pass
|
||||
Reference in New Issue
Block a user