]>
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 * 
  15 # Can be changed to set other default encoding different 
  16 defaultEncoding 
= sys
.getdefaultencoding() 
  33     testWinPos 
= wxDefaultPosition
 
  35     currentEncoding 
= defaultEncoding
 
  38         self
._sysFont 
= wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT
) 
  39         self
._labelFont 
= wxFont(self
._sysFont
.GetPointSize(), wxDEFAULT
, wxNORMAL
, wxBOLD
) 
  40         self
._modernFont 
= wxFont(self
._sysFont
.GetPointSize(), wxMODERN
, wxNORMAL
, wxNORMAL
) 
  41         self
._smallerFont 
= wxFont(self
._sysFont
.GetPointSize()-2, wxDEFAULT
, wxNORMAL
, wxNORMAL
) 
  44         if not hasattr(self
, "_sysFont"): self
._makeFonts
() 
  47         if not hasattr(self
, "_labelFont"): self
._makeFonts
() 
  48         return self
._labelFont
 
  50         if not hasattr(self
, "_modernFont"): self
._makeFonts
() 
  51         return self
._modernFont
 
  52     def smallerFont(self
): 
  53         if not hasattr(self
, "_smallerFont"): self
._makeFonts
() 
  54         return self
._smallerFont