mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
added getdefaultfont() function. Returns default font settings. (jvr)
This commit is contained in:
parent
2028b59db4
commit
c2dab4866e
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue