def _emoji_label_set_tooltip( # pylint: disable=no-self-use
self, emoji, label):
'''
Set the tooltip for a label in the flowbox which shows an emoji
:param emoji: The emoji
:type emoji: String
:param label: The label used to show the emoji
:type label: Gtk.Label object
'''
tooltip_text = _('Left click to copy') + '\n'
if len(self._emoji_matcher.skin_tone_variants(emoji)) > 1:
tooltip_text += (
_('Long press or middle click for skin tones') + '\n')
tooltip_text += _('Right click for info')
label.set_tooltip_text(tooltip_text)
评论列表
文章目录