Skip to content

Commit

Permalink
fix some button
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed Jun 9, 2024
1 parent 441c1c0 commit 1264e76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Difficult_Rocket/gui/widget/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# All rights reserved
# -------------------------------

from typing import Optional, Tuple
from typing import Optional, Tuple, Type

# from libs import pyglet
import pyglet
Expand Down Expand Up @@ -326,7 +326,7 @@ def __init__(
batch: Optional[Batch] = None,
group: Optional[Group] = None,
theme: Optional[ButtonThemeOptions] = None,
draw_theme: Optional[type(BaseButtonTheme)] = None,
draw_theme: Optional[Type[BaseButtonTheme]] = None,
dict_theme: Optional[dict] = None,
):
super().__init__(x, y, width, height)
Expand Down Expand Up @@ -384,7 +384,6 @@ def __init__(
height=self._height,
batch=self.main_batch,
group=self.back_ground_group,
theme=self.dict_theme,
)
self.draw_theme.on_update(self)

Expand Down

0 comments on commit 1264e76

Please sign in to comment.