(self, my_button, state)
Notify the controller of a new mode setting.
Notify the controller of a new mode setting.
Notify the controller of a new mode setting .
def on_mode_button(self, my_button, state):
        """Notify the controller of a new mode setting."""
        if state:
            # The new mode is the label of the button
            self.controller.set_mode(my_button.get_label())
def on_mode_button ( self , my_button , state ) : if state : # The new mode is the label of the button self . controller . set_mode ( my_button . get_label ( ) )