summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE')
-rw-r--r--Mac/Tools/IDE/W.py6
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()