def _createButton(self, button_id, message, rect): button = Button(button_id, self, message, Consts.LIGHT_GOLD_COLOR, rect) self.inputManager.attach(button) button.font_object = self.font_object button._setColors(Consts.LIGHT_GOLD_COLOR, Consts.HOVER_GOLD_COLOR, Consts.PRESSED_GOLD_COLOR) return button
def _createButton(self, button_id, message, rect): button = Button(button_id, self, message, Consts.GRAY_COLOR, rect) self.inputManager.attach(button) button.border_color = Consts.WHITE_COLOR button._setColors(Consts.GRAY_COLOR, Consts.HOVER_GRAY_COLOR, Consts.PRESSED_GRAY_COLOR) return button