+ currentEncoding = defaultEncoding
+
+ def _makeFonts(self):
+ self._sysFont = wx.SystemSettings.GetFont(wx.SYS_SYSTEM_FONT)
+ self._labelFont = wx.Font(self._sysFont.GetPointSize(), wx.DEFAULT, wx.NORMAL, wx.BOLD)
+ self._modernFont = wx.Font(self._sysFont.GetPointSize(), wx.MODERN, wx.NORMAL, wx.NORMAL)
+ self._smallerFont = wx.Font(self._sysFont.GetPointSize()-2, wx.DEFAULT, wx.NORMAL, wx.NORMAL)
+
+ def sysFont(self):
+ if not hasattr(self, "_sysFont"): self._makeFonts()
+ return self._sysFont
+ def labelFont(self):
+ if not hasattr(self, "_labelFont"): self._makeFonts()
+ return self._labelFont
+ def modernFont(self):
+ if not hasattr(self, "_modernFont"): self._makeFonts()
+ return self._modernFont
+ def smallerFont(self):
+ if not hasattr(self, "_smallerFont"): self._makeFonts()
+ return self._smallerFont
+