Created
June 8, 2016 13:40
-
-
Save Phuket2/2117d9f7590f5a8d09cbd62d6291d826 to your computer and use it in GitHub Desktop.
radio_button.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To follow the ui paradigm, consider a user supplied
actionattribute, which is called when the state changes by touch, if it exists and is callable .selectedshould be a @Property, so if changed programatically, it calls sets needs display. You might also consider using tint_color and bg_color as attributes so it can be styled normally. maybe anenabledproperty which greys things out and disables touch.Lines 27-30 and 33-36 seem like they can be merges and go outside the if/else.