mirror of https://github.com/python/cpython
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:
parent
66ab4e8af2
commit
ab3b50b429
|
@ -25,7 +25,8 @@ class CallTip:
|
||||||
tw.wm_overrideredirect(1)
|
tw.wm_overrideredirect(1)
|
||||||
tw.wm_geometry("+%d+%d" % (x, y))
|
tw.wm_geometry("+%d+%d" % (x, y))
|
||||||
label = Label(tw, text=self.text, justify=LEFT,
|
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()
|
label.pack()
|
||||||
|
|
||||||
def hidetip(self):
|
def hidetip(self):
|
||||||
|
|
Loading…
Reference in New Issue