code: def _pick_colours(self, palette_name, selected=False):
          
          return self._frame.palette[self._pick_palette_key(palette_name, selected)]
docs: Pick the rendering colour for a widget based on the current state.
  
          :param palette_name: The stem name for the widget - e.g. "button".
          :param selected: Whether this item is selected or not.
          :returns: A colour tuple (fg, attr, bg) to be used.