Removed debug prints.

This commit is contained in:
The Wobbler 2023-11-12 15:00:53 +01:00
parent d89e8bf96e
commit 6fb6280bad

5
pg.py
View file

@ -41,7 +41,6 @@ class Hover:
mx, my = mouse_pos mx, my = mouse_pos
if not self.ca is None: if not self.ca is None:
print(type(self.ca))
if self.ca.collidepoint((mx, my)): if self.ca.collidepoint((mx, my)):
if self.function is None: if self.function is None:
return True return True
@ -84,8 +83,6 @@ class Button:
self.ca = ca self.ca = ca
self.key = key self.key = key
print(type(ca))
self.hover = Hover(function, ca, position, size) self.hover = Hover(function, ca, position, size)
if buttonlist: if buttonlist:
@ -196,8 +193,6 @@ class TextButton:
self.button = Button(new_func, self.background, key=new_key) self.button = Button(new_func, self.background, key=new_key)
def blit(self, surface: pygame.Surface=None): def blit(self, surface: pygame.Surface=None):
x, y = self.position x, y = self.position