]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/tools/XRCed/globals.py
Some wxOGL tweaks to match what has been done in the C++ classes
[wxWidgets.git] / wxPython / wx / tools / XRCed / globals.py
1 # Name: globals.py
2 # Purpose: XRC editor, global variables
3 # Author: Roman Rolinsky <rolinsky@mema.ucl.ac.be>
4 # Created: 02.12.2002
5 # RCS-ID: $Id$
6
7 from wxPython.wx import *
8 from wxPython.xrc import *
9 import sys
10
11 # Global constants
12
13 sysFont = wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT)
14 labelFont = wxFont(sysFont.GetPointSize(), wxDEFAULT, wxNORMAL, wxBOLD)
15 modernFont = wxFont(sysFont.GetPointSize(), wxMODERN, wxNORMAL, wxNORMAL)
16 smallerFont = wxFont(sysFont.GetPointSize()-2, wxDEFAULT, wxNORMAL, wxNORMAL)
17
18 progname = 'XRCed'
19 version = '0.1.1-4'
20
21 try:
22 True
23 except NameError:
24 True = 1==1
25 False = 1==0
26
27 # Global variables
28
29 class Globals:
30 panel = None
31 tree = None
32 frame = None
33 tools = None
34 undoMan = None
35 testWin = None
36 testWinPos = wxDefaultPosition
37 currentXXX = None
38 currentEncoding = sys.getdefaultencoding() # wxLocale_GetSystemEncodingName()
39
40 g = Globals()