Returns the label for this widget.  Varies per type, not all
        types have labels.
        
        :return     <str>
356532
def label( self ):
        
        if ( self._editor and hasattr(self._editor, 'label') ):
            return self._editor.label()
        return ''
1065200
def item(self, current_item):
        
        return {
            'value': text(getattr(current_item, self.get_field_name())),
            'label': self.label(current_item)
        }
967200
public String getLabelText() {
		String text = null;

		if (label != null) {
			text = label.getText();
		}

		return text;
	}
314432
def get_labels(self):
        
        return github.PaginatedList.PaginatedList(
            github.Label.Label,
            self._requester,
            self.url + "/labels",
            None
        )
725258
def label(self):
        
        group_names = sorted([m.player_name for m in self.members])
        return ", ".join(group_names)
123118
def choices_label(choices: tuple, value) -> str:
    
    for key, label in choices:
        if key == value:
            return label
    return ''
125625
def label(self):
        """""""

        if self.valuetype_class.is_label():
            return self

        for c in self.table.columns:
            if c.parent == self.name and  c.valuetype_class.is_label():
                return c

        return None
783697
def labels(self):
        
        return set([n.taxon.label for n in self._tree.leaf_nodes()])
1332355
public String getLabel() {
        String label = attrMixin.getAttribute(LABEL);
        return label.isEmpty() ? null : label;
    }
762588
def badge_label(self, badge):
        ''''''
        kind = badge.kind if isinstance(badge, Badge) else badge
        return self.__badges__[kind]
378613
def labels(self):
        
        return [
            name for name in os.listdir(self.root)
            if os.path.isdir(os.path.join(self.root, name))
        ]
1155510
def _get_button_label(self):
        """"""

        dlg = wx.TextEntryDialog(self, _('Button label:'))

        if dlg.ShowModal() == wx.ID_OK:
            label = dlg.GetValue()
        else:
            label = ""

        dlg.Destroy()

        return label
221411
protected function getLabel()
	{
		if (isset($this->labelOptions['class']))
			$this->labelOptions['class'] .= ' control-label';
		else
			$this->labelOptions['class'] = 'control-label';

		return parent::getLabel();
	}
401010
def get_label(key):
    
    if key in rel:
        if mpl.rcParams['text.usetex']:
            return rel[key]['label_latex']
        else:
            return rel[key]['label_mpl']
    else:
        return key
818832
def get_spacer_label(self):
        

        spacer = QLabel()
        spacer.setObjectName("Spacer_label")
        spacer.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
        return spacer
337322
public String getLabel() {
            String label = getProperty(labelProperty);
            label = label == null ? node.getLabel() : label;

            if (label == null) {
                label = getDefaultInstanceName();
                setProperty(labelProperty, label);
            }

            return label;
        }
661249
def labels(self):
        
        label_array = self.header['label']['value']
        labels = tuple(''.join(row.astype(str)) for row in label_array)

        try:
            nlabels = int(self.header['nlabl']['value'])
        except KeyError:
            nlabels = len(labels)

        # Check if there are nontrivial labels after the number given in
        # the header. If yes, ignore the 'nlabl' information and return
        # all labels.
        if any(label.strip() for label in labels[nlabels:]):
            return labels
        else:
            return labels[:nlabels]