(self)
display the tooltip
display the tooltip
display the tooltip
def showtip(self):
        """display the tooltip"""
        if self.tipwindow:
            return
        self.tipwindow = tw = Toplevel(self.anchor_widget)
        # show no border on the top level window
        tw.wm_overrideredirect(1)
        try:
            # This command is only needed and available on Tk >= 8.4.0 for OSX.
            # Without it, call tips intrude on the typing process by grabbing
            # the focus.
            tw.tk.call("::tk::unsupported::MacWindowStyle", "style", tw._w,
                       "help", "noActivates")
        except TclError:
            pass

        self.position_window()
        self.showcontents()
        self.tipwindow.update_idletasks()  # Needed on MacOS -- see #34275.
        self.tipwindow.lift()
def showtip ( self ) : if self . tipwindow : return self . tipwindow = tw = Toplevel ( self . anchor_widget ) # show no border on the top level window tw . wm_overrideredirect ( 1 ) try : # This command is only needed and available on Tk >= 8.4.0 for OSX. # Without it, call tips intrude on the typing process by grabbing # the focus. tw . tk . call ( "::tk::unsupported::MacWindowStyle" , "style" , tw . _w , "help" , "noActivates" ) except TclError : pass self . position_window ( ) self . showcontents ( ) self . tipwindow . update_idletasks ( ) # Needed on MacOS -- see #34275. self . tipwindow . lift ( )