Mark Hammond writes: Tim's suggestion of copying the font for the

CallTipWindow from the text control makes sense, and actually makes
the control look better IMO.
This commit is contained in:
Guido van Rossum 1999-06-10 14:19:46 +00:00
parent 66ab4e8af2
commit ab3b50b429
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ class CallTip:
tw.wm_overrideredirect(1)
tw.wm_geometry("+%d+%d" % (x, y))
label = Label(tw, text=self.text, justify=LEFT,
background="#ffffe0", relief=SOLID, borderwidth=1)
background="#ffffe0", relief=SOLID, borderwidth=1,
font = self.widget['font'])
label.pack()
def hidetip(self):