From c2dab4866ee06544c1385bea21639ae1b370728d Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Sun, 26 Sep 1999 12:17:04 +0000 Subject: added getdefaultfont() function. Returns default font settings. (jvr) --- Mac/Tools/IDE/W.py | 6 ++++++ 1 file changed, 6 insertions(+) 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() -- cgit v0.12