@ -10,3 +10,9 @@ class Button():
# 设置按钮的尺寸和其他属性
self.width, self.height = 200, 50
self.button_color = (0, 255, 0)
self.text_color = (255, 255, 255)
self.font = pygame.font.SysFont('arial', 48)
# 创建按钮的rect对象,并使其居中