X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8b9a4190f70909de9568f45389e7aa3ecbc66b8a..b86cccf1baab60fd74a7ed9f6d6789fa40c020c5:/wxPython/wx/tools/XRCed/globals.py diff --git a/wxPython/wx/tools/XRCed/globals.py b/wxPython/wx/tools/XRCed/globals.py index 49b02114ec..86a402ceb1 100644 --- a/wxPython/wx/tools/XRCed/globals.py +++ b/wxPython/wx/tools/XRCed/globals.py @@ -1,8 +1,40 @@ +# Name: globals.py +# Purpose: XRC editor, global variables +# Author: Roman Rolinsky +# Created: 02.12.2002 +# RCS-ID: $Id$ -"""Renamer stub: provides a way to drop the wx prefix from wxPython objects.""" +from wxPython.wx import * +from wxPython.xrc import * +import sys -from wx import _rename -from wxPython.tools.XRCed import globals -_rename(globals(), globals.__dict__, modulename='tools.XRCed.globals') -del globals -del _rename +# Global constants + +sysFont = wxSystemSettings_GetFont(wxSYS_SYSTEM_FONT) +labelFont = wxFont(sysFont.GetPointSize(), wxDEFAULT, wxNORMAL, wxBOLD) +modernFont = wxFont(sysFont.GetPointSize(), wxMODERN, wxNORMAL, wxNORMAL) +smallerFont = wxFont(sysFont.GetPointSize()-2, wxDEFAULT, wxNORMAL, wxNORMAL) + +progname = 'XRCed' +version = '0.1.2-1' + +try: + True +except NameError: + True = 1==1 + False = 1==0 + +# Global variables + +class Globals: + panel = None + tree = None + frame = None + tools = None + undoMan = None + testWin = None + testWinPos = wxDefaultPosition + currentXXX = None + currentEncoding = sys.getdefaultencoding() # wxLocale_GetSystemEncodingName() + +g = Globals()