]>
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 *
10 from wxPython
.wizard
import *
19 # Can be changed to set other default encoding different
20 defaultEncoding
= sys
.getdefaultencoding()
37 testWinPos
= wxDefaultPosition
39 currentEncoding
= defaultEncoding
42 self
._sysFont
= wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT
)
43 self
._labelFont
= wxFont(self
._sysFont
.GetPointSize(), wxDEFAULT
, wxNORMAL
, wxBOLD
)
44 self
._modernFont
= wxFont(self
._sysFont
.GetPointSize(), wxMODERN
, wxNORMAL
, wxNORMAL
)
45 self
._smallerFont
= wxFont(self
._sysFont
.GetPointSize()-2, wxDEFAULT
, wxNORMAL
, wxNORMAL
)
48 if not hasattr(self
, "_sysFont"): self
._makeFonts
()
51 if not hasattr(self
, "_labelFont"): self
._makeFonts
()
52 return self
._labelFont
54 if not hasattr(self
, "_modernFont"): self
._makeFonts
()
55 return self
._modernFont
56 def smallerFont(self
):
57 if not hasattr(self
, "_smallerFont"): self
._makeFonts
()
58 return self
._smallerFont