added getdefaultfont() function. Returns default font settings. (jvr)
This commit is contained in:
parent
2028b59db4
commit
c2dab4866e
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue