Open qippur opened 3 years ago
Ack. Would be nice to implement those. The changes actually would be more pervasive, as disabled widgets would need to render themselves accordingly. No plans when that would be looked into, there's a queue of other issues so far.
Hi, I'd like to share a feature I implemented and hope that it could help someone. I needed a way to disable any interactive widget (e. g. disable a drop down until a checkbox is selected) - this feature seems to be only available for buttons. So, this is what I did.
This is my new FocusableWidget class (added disabled status, disable and enable methods):
These are my new find_focusable* methods for Dialog class (added check for disabled status):
And, last, my new change_focus (just added a check for disabled status on top)