]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/tools/XRCed/globals.py
2 # Purpose: XRC editor, global variables
3 # Author: Roman Rolinsky <rolinsky@mema.ucl.ac.be>
7 from wxPython
.wx
import *
8 from wxPython
.xrc
import *
31 testWinPos
= wxDefaultPosition
33 currentEncoding
= sys
.getdefaultencoding() # wxLocale_GetSystemEncodingName()
36 self
._sysFont
= wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT
)
37 self
._labelFont
= wxFont(self
._sysFont
.GetPointSize(), wxDEFAULT
, wxNORMAL
, wxBOLD
)
38 self
._modernFont
= wxFont(self
._sysFont
.GetPointSize(), wxMODERN
, wxNORMAL
, wxNORMAL
)
39 self
._smallerFont
= wxFont(self
._sysFont
.GetPointSize()-2, wxDEFAULT
, wxNORMAL
, wxNORMAL
)
42 if not hasattr(self
, "_sysFont"): self
._makeFonts
()
45 if not hasattr(self
, "_labelFont"): self
._makeFonts
()
46 return self
._labelFont
48 if not hasattr(self
, "_modernFont"): self
._makeFonts
()
49 return self
._modernFont
50 def smallerFont(self
):
51 if not hasattr(self
, "_smallerFont"): self
._makeFonts
()
52 return self
._smallerFont