From f17e4fbd595d5c9b4781c2db8dfb4a7d30c9b8f3 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Mon, 9 Oct 2023 19:43:14 +0800 Subject: [PATCH] Fix | Button position have a z --- Difficult_Rocket/gui/widget/button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Difficult_Rocket/gui/widget/button.py b/Difficult_Rocket/gui/widget/button.py index 7f19c0c..38ec4d5 100644 --- a/Difficult_Rocket/gui/widget/button.py +++ b/Difficult_Rocket/gui/widget/button.py @@ -174,7 +174,7 @@ class PressTextButton(widgets.WidgetBase): self.pressed = False def _update_position(self): - self.text_label.position = self._x, self._y + self.text_label.position = self._x, self._y, 0 self.back_rec.position = self._x, self._y self.back_rec.width = self._width self.back_rec.height = self._height