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