#NEWLINE# def toggle_selected( self , * l ) : #NEWLINE# #INDENT# self . _draw_rect ( clear = True ) #NEWLINE# if ( l . ids . select . state == 'down' ) : #NEWLINE# #INDENT# self . dispatch ( 'on_select' ) #NEWLINE# self . ids . select . text = 'Deselect' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . dispatch ( 'on_deselect' ) #NEWLINE# self . ids . select . text = 'Select'