This commit is contained in:
Benjamín 2021-09-01 11:59:17 +02:00
parent 24ce2842ae
commit 1dd2e4de38
2 changed files with 4 additions and 4 deletions

@ -5,8 +5,8 @@ import numpy as np
class Scene(Screen):
def __init__(self, width: float, height: float, font_size: int, screen_size: a, bg=(60, 60, 60)):
super().__init__(width, height, font_size, screen_size)
def __init__(self, width: float, height: float, font_size: int, scene_size: a, bg=(60, 60, 60)):
super().__init__(width, height, font_size, scene_size)
self.bg = bg
self.r_objects = [] # resizable Objects

@ -7,11 +7,11 @@ from UI.Objects.r_objects.Rect import Rect
class BasicScene(Scene):
def __init__(self, font_size: int, screen_size: a, bg=(60, 60, 60)):
def __init__(self, font_size: int, scene_size: a, bg=(60, 60, 60)):
s__size = [600, 400]
super().__init__(s__size[0], s__size[1], font_size, screen_size, bg)
super().__init__(s__size[0], s__size[1], font_size, scene_size, bg)
r0 = Rect(a([0, 0]), a([200, 200]), (160, 160, 160), self)
self.r_objects.append(r0)