diff options
author | Steven M. Gava <elguavas@python.net> | 2001-08-11 15:48:13 (GMT) |
---|---|---|
committer | Steven M. Gava <elguavas@python.net> | 2001-08-11 15:48:13 (GMT) |
commit | c01e30f072851005e2365cb99bbb3ae4dd13709f (patch) | |
tree | 9ae64aeb26dcdc564903b69e12726ee7af445c05 /Lib/idlelib/aboutDialog.py | |
parent | 58682b7fe53d9bf7fefea59413d47ddd3c9a7d5f (diff) | |
download | cpython-c01e30f072851005e2365cb99bbb3ae4dd13709f.zip cpython-c01e30f072851005e2365cb99bbb3ae4dd13709f.tar.gz cpython-c01e30f072851005e2365cb99bbb3ae4dd13709f.tar.bz2 |
repair posix fonts fix
Diffstat (limited to 'Lib/idlelib/aboutDialog.py')
-rw-r--r-- | Lib/idlelib/aboutDialog.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py index b6720ca..a6f6b96 100644 --- a/Lib/idlelib/aboutDialog.py +++ b/Lib/idlelib/aboutDialog.py @@ -8,6 +8,7 @@ about box for idle """ from Tkinter import * +import tkFont import string, os import textView import idlever @@ -24,12 +25,8 @@ class AboutDialog(Toplevel): self.bg="#555555" self.fg="#ffffff" #no ugly bold default font on *nix - font=Label().cget('font') - if os.name=='posix': - lFont=font.split() - if len(lFont) == 2: lFont=lFont+['normal'] - else: lFont[2]='normal' - font=tuple(lFont) + font=tkFont.Font(self,Label().cget('font')) + if os.name=='posix': font.config(weight=NORMAL) self.textFont=font self.CreateWidgets() |