diff --git a/Difficult_Rocket/gui/widget/button.py b/Difficult_Rocket/gui/widget/button.py index 6d4ce37..a3d6b21 100644 --- a/Difficult_Rocket/gui/widget/button.py +++ b/Difficult_Rocket/gui/widget/button.py @@ -137,7 +137,10 @@ class PressTextButton(widgets.WidgetBase): ... def on_press(self, x, y): + import random self.value += "1" + next_rgb = [random.randint(50, 255) for _ in range(3)] + self.untouched_color = (*next_rgb, 255) PressTextButton.register_event_type('on_press')