Fix | Button position have a z

This commit is contained in:
shenjack 2023-10-09 19:43:14 +08:00
parent b566c93ffa
commit f17e4fbd59
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -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