Replies: 2 comments 1 reply
-
Your method has 2 parameters:
def dialog_alarm(self,e:ControlEvent): But you're only passing one:
To fix this you need to pass self too text_add_alarm = TextButton(
text="Click to add new alarm",
on_click=self.dialog_alarm,
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you father |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
name error : self._target(*self._args, **self._kwargs)
TypeError: Alarm.dialog_alarm() missing 1 required positional argument: 'e',,,
idk how i fix this ! , I need Your HELP ....
Beta Was this translation helpful? Give feedback.
All reactions