]>
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:
23 #defaultEncoding = wx.GetDefaultPyEncoding()
40 testWinPos
= wxDefaultPosition
42 currentEncoding
= defaultEncoding
45 self
._sysFont
= wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT
)
46 self
._labelFont
= wxFont(self
._sysFont
.GetPointSize(), wxDEFAULT
, wxNORMAL
, wxBOLD
)
47 self
._modernFont
= wxFont(self
._sysFont
.GetPointSize(), wxMODERN
, wxNORMAL
, wxNORMAL
)
48 self
._smallerFont
= wxFont(self
._sysFont
.GetPointSize()-2, wxDEFAULT
, wxNORMAL
, wxNORMAL
)
51 if not hasattr(self
, "_sysFont"): self
._makeFonts
()
54 if not hasattr(self
, "_labelFont"): self
._makeFonts
()
55 return self
._labelFont
57 if not hasattr(self
, "_modernFont"): self
._makeFonts
()
58 return self
._modernFont
59 def smallerFont(self
):
60 if not hasattr(self
, "_smallerFont"): self
._makeFonts
()
61 return self
._smallerFont