1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 15:35:12 +00:00

fix: accept area attr in ClickButton

This commit is contained in:
YoursFunny 2023-11-21 19:20:04 +08:00
parent 03380b2d71
commit 9604e8962a
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -231,9 +231,12 @@ class ButtonWrapper(Resource):
class ClickButton:
def __init__(self, button, name='CLICK_BUTTON'):
self.area = button
self.button = button
def __init__(self, area, button=None, name='CLICK_BUTTON'):
self.area = area
if button is None:
self.button = area
else:
self.button = button
self.name = name
def __str__(self):