'Display text in tooltip window'

def showtip(self, text):

    self.text = text
    if (self.tipwindow or (not self.text)):
        return
    (x, y, _, _) = self.widget.bbox(u'insert')
    x = ((x + self.widget.winfo_rootx()) + 27)
    y = (y + self.widget.winfo_rooty())
    self.tipwindow = tw = Tk.Toplevel(self.widget)
    tw.wm_overrideredirect(1)
    tw.wm_geometry((u'+%d+%d' % (x, y)))
    try:
        tw.tk.call(u'::tk::unsupported::MacWindowStyle', u'style', tw._w, u'help', u'noActivates')
    except Tk.TclError:
        pass
    label = Tk.Label(tw, text=self.text, justify=Tk.LEFT, background=u'#ffffe0', relief=Tk.SOLID, borderwidth=1)
    label.pack(ipadx=1)
