Your
You have defined
Or why not inherit from
ButtonWidget
inherits from generic Widget
. Widget
, unlike Button
has no attribute state
, so you cannot configure it via Widget.config()
methodYou have defined
ButtonWidget.disable()
method. Why not call it directly - MyButton.disable()
instead of using MyButton.config()
?Or why not inherit from
Button
instead of Widget
?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs