]>
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>
8 from wxPython
.wx
import *
9 from wxPython
.xrc
import *
11 from wxPython
.wizard
import *
20 # Can be changed to set other default encoding different
21 #defaultEncoding = sys.getdefaultencoding()
22 defaultEncoding
= wx
.GetDefaultPyEncoding()
39 testWinPos
= wxDefaultPosition
41 currentEncoding
= defaultEncoding
44 self
._sysFont
= wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT
)
45 self
._labelFont
= wxFont(self
._sysFont
.GetPointSize(), wxDEFAULT
, wxNORMAL
, wxBOLD
)
46 self
._modernFont
= wxFont(self
._sysFont
.GetPointSize(), wxMODERN
, wxNORMAL
, wxNORMAL
)
47 self
._smallerFont
= wxFont(self
._sysFont
.GetPointSize()-2, wxDEFAULT
, wxNORMAL
, wxNORMAL
)
50 if not hasattr(self
, "_sysFont"): self
._makeFonts
()
53 if not hasattr(self
, "_labelFont"): self
._makeFonts
()
54 return self
._labelFont
56 if not hasattr(self
, "_modernFont"): self
._makeFonts
()
57 return self
._modernFont
58 def smallerFont(self
):
59 if not hasattr(self
, "_smallerFont"): self
._makeFonts
()
60 return self
._smallerFont