Python @On functions inside class #2828
Answered
by
miranda1000
miranda1000
asked this question in
Q&A
-
I'm trying to create something similar to this example but inside a class. Let's say you want this code
but the variable Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Answered by
miranda1000
Nov 12, 2022
Replies: 1 comment 1 reply
-
Putting the function inside the constructor seems to work, but is there any cleaner way to do it?
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
miranda1000
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Putting the function inside the constructor seems to work, but is there any cleaner way to do it?