Ejemplo n.º 1
0
 def __init__(self, game, x=0, y=0, width=100, height=40):
     theme = Theme()
     clicked = join(data_dir, '3player_normal.png')
     normal = join(data_dir, '3player_pressed.png')
     theme.add_button_textures(normal, normal, clicked, clicked)
     super().__init__(x, y, width, height, '', theme=theme)
     self.game = game
Ejemplo n.º 2
0
 def __init__(self, x, y, width, height, text, name, font_size):
     theme = Theme()
     theme.set_font(font_size, color.COOL_BLACK, font_name=FONT_NAME)
     theme.add_button_textures(EMPTY_PIC)
     super().__init__(x, y, width, height, text, theme=theme)
     self.cost = None
     self.name = name
     self.pressed = False
     self.checked = False
     self.locked = False