def showcontents(self): try: text = self.text_callback() except: text = '' ToolTipBase.showcontents(self, text)