<s> from kivy import utils <EOL> from kivy . uix . behaviors import ToggleButtonBehavior <EOL> from kivy . uix . togglebutton import ToggleButton <EOL> COLOR_DOWN = utils . get_color_from_hex ( '<STR_LIT>' ) <EOL> COLOR_NORMAL = utils . get_color_from_hex ( '<STR_LIT>' ) <EOL> def state_change ( btn , state ) : <EOL> if state == '<STR_LIT>' : <EOL> btn . color = COLOR_DOWN <EOL> else : <EOL> btn . color = COLOR_NORMAL <EOL> class Radio ( ToggleButton ) : <EOL> '''<STR_LIT>''' <EOL> def __init__ ( self , ** kwargs ) : <EOL> kwargs [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> if kwargs [ '<STR_LIT>' ] == '<STR_LIT>' : <EOL> kwargs [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> else : <EOL> kwargs [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> kwargs [ '<STR_LIT>' ] = ( <NUM_LIT:2> , ) * <NUM_LIT:4> <EOL> if kwargs . get ( '<STR_LIT:state>' ) == '<STR_LIT>' : <EOL> kwargs [ '<STR_LIT>' ] = COLOR_DOWN <EOL> else : <EOL> kwargs [ '<STR_LIT>' ] = COLOR_NORMAL <EOL> if kwargs [ '<STR_LIT>' ] == '<STR_LIT>' : <EOL> kwargs [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> kwargs [ '<STR_LIT>' ] = <NUM_LIT:15> <EOL> kwargs [ '<STR_LIT>' ] = False <EOL> self . rel = kwargs [ '<STR_LIT>' ] <EOL> del kwargs [ '<STR_LIT>' ] <EOL> ToggleButton . __init__ ( self , ** kwargs ) <EOL> self . bind ( state = state_change ) <EOL> def _do_press ( self ) : <EOL> if self . state == '<STR_LIT>' : <EOL> ToggleButtonBehavior . _do_press ( self ) </s>
