code: def set_mode_cb(self, mode, tf):
          
          if tf:
              self.canvas.set_draw_mode(mode)
              if mode == 'edit':
                  self.edit_select_marks()
          return True
docs: Called when one of the Move/Draw/Edit radio buttons is selected.