]> granicus.if.org Git - python/commitdiff
Mark Hammond writes: Tim's suggestion of copying the font for the
authorGuido van Rossum <guido@python.org>
Thu, 10 Jun 1999 14:19:46 +0000 (14:19 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 10 Jun 1999 14:19:46 +0000 (14:19 +0000)
CallTipWindow from the text control makes sense, and actually makes
the control look better IMO.

Tools/idle/CallTipWindow.py

index 71d67554e538cb18ea2daef7ba1f91a33a1818bd..cbeab8cc15fc0e0bc4c6bf658f5e2719f47c795b 100644 (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):