I read the Kivy tutorial and couldn't find how to disable a widget (for example, a Button).
def foo(self, instance, *args):
#... main business logic, and then
instance.disable = False
# type(instance) = kivy.uix.Button
I bind foo
with functools.partial
.
What is the correct parameter?
If you are using kivy version >= 1.8 then you can just do widget.disabled = True. If on previous versions you can simply manage the disabling yourself, just make sure it doesn't react to touch and displays a alternative look when disabled.