]>
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
21 # you comment above and can uncomment this:
22 defaultEncoding
= wxGetDefaultPyEncoding()
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