Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2dab48

Browse files
author
Just van Rossum
committed
added getdefaultfont() function. Returns default font settings. (jvr)
1 parent 2028b59 commit c2dab48

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Mac/Tools/IDE/W.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ def getapplication():
2424
raise WidgetsError, 'W not properly initialized: unknown Application'
2525
return _application
2626

27+
def getdefaultfont():
28+
prefs = getapplication().getprefs()
29+
if not prefs.defaultfont:
30+
prefs.defaultfont = ("Python-Sans", 0, 9, (0, 0, 0))
31+
return prefs.defaultfont
32+
2733
def Message(text):
2834
import EasyDialogs, Qd, string
2935
Qd.InitCursor()

0 commit comments

Comments
 (0)