diff options
author | Just van Rossum <just@lettererror.com> | 1999-09-26 12:17:04 (GMT) |
---|---|---|
committer | Just van Rossum <just@lettererror.com> | 1999-09-26 12:17:04 (GMT) |
commit | c2dab4866ee06544c1385bea21639ae1b370728d (patch) | |
tree | 9b3cf10bd2369d4917972323ecff2e135d0d76f9 /Mac/Tools/IDE/W.py | |
parent | 2028b59db4d43b887a4ec1eb701715bf80b3947c (diff) | |
download | cpython-c2dab4866ee06544c1385bea21639ae1b370728d.zip cpython-c2dab4866ee06544c1385bea21639ae1b370728d.tar.gz cpython-c2dab4866ee06544c1385bea21639ae1b370728d.tar.bz2 |
added getdefaultfont() function. Returns default font settings. (jvr)
Diffstat (limited to 'Mac/Tools/IDE/W.py')
-rw-r--r-- | Mac/Tools/IDE/W.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/W.py b/Mac/Tools/IDE/W.py index 812134f..cdf153d 100644 --- a/Mac/Tools/IDE/W.py +++ b/Mac/Tools/IDE/W.py @@ -24,6 +24,12 @@ def getapplication(): raise WidgetsError, 'W not properly initialized: unknown Application' return _application +def getdefaultfont(): + prefs = getapplication().getprefs() + if not prefs.defaultfont: + prefs.defaultfont = ("Python-Sans", 0, 9, (0, 0, 0)) + return prefs.defaultfont + def Message(text): import EasyDialogs, Qd, string Qd.InitCursor() |