def _gl_content_get(self, gl, part, commit): if part == 'elm.swallow.icon': return SafeIcon(gl, 'git-commit') else: en = Entry(gl, editable=False, single_line=True, text='<name>{}</>'.format(commit.sha_short)) # en.tooltip_window_mode = True # TODO why this fail?? en.tooltip_content_cb_set(self._tooltip_content_cb, commit) return en