]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
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$ | |
1fded56b | 6 | |
d14a1e28 RD |
7 | from wxPython.wx import * |
8 | from wxPython.xrc import * | |
9 | import sys | |
1fded56b | 10 | |
d14a1e28 RD |
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' | |
a4c013b2 | 19 | version = '0.1.2-1' |
d14a1e28 RD |
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() |