Fix: Accept area attribute in ClickButton

This commit is contained in:
LmeSzinc 2023-11-07 13:38:31 +08:00
parent acc0be8c05
commit 571104831d

View File

@ -308,8 +308,11 @@ class ButtonWrapper(Resource):
class ClickButton:
def __init__(self, button, name='CLICK_BUTTON'):
self.area = 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