added getdefaultfont() function. Returns default font settings. (jvr)

This commit is contained in:
Just van Rossum 1999-09-26 12:17:04 +00:00
parent 2028b59db4
commit c2dab4866e
1 changed files with 6 additions and 0 deletions

View File

@ -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()