Skip to content

Commit

Permalink
GUI.pyw: use specific tooltip font
Browse files Browse the repository at this point in the history
  • Loading branch information
Elvish-Hunter committed Sep 7, 2015
1 parent 78e03f3 commit 3cbbede
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion data/tools/GUI.pyw
Expand Up @@ -29,6 +29,7 @@ if sys.version_info.major >= 3:
else: # we are on Python 2
import Queue
# tkinter modules
import tkFont as font # in Py3 it's tkinter.font
from Tkinter import *
from tkMessageBox import *
from tkFileDialog import *
Expand Down Expand Up @@ -150,7 +151,10 @@ mouse pointer stays on the widget for more than 500 ms."""
background="#ffffe1", # background color used on Windows
borderwidth=1,
relief=SOLID,
padding=1)
padding=1,
# Tk has a bunch of predefined fonts
# use the one specific for tooltips
font=font.nametofont("TkTooltipFont"))
self.label.pack()
self.overrideredirect(True)
self.widget.bind("<Enter>",self.preshow)
Expand Down

0 comments on commit 3cbbede

Please sign in to comment.