Changed how the stock objects (wx.RED, wx.RED_PEN, wx.RED_BRUSH, etc.)
authorRobin Dunn <robin@alldunn.com>
Tue, 18 Apr 2006 21:49:48 +0000 (21:49 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 18 Apr 2006 21:49:48 +0000 (21:49 +0000)
commit99a001dd43b3b2b23ea5787c7a94c5328e3c3375
treee205ed1f04ebf91159393793fbca045718c3620b
parent5d7b75542e6cc3fe9823828a00889cb5d578814a
Changed how the stock objects (wx.RED, wx.RED_PEN, wx.RED_BRUSH, etc.)
are initialized.  They are now created as a wrapper object that
initializes itself on first use (when an attribute of the object is
requested.)  This was needed because of similar delayed initialization
functionality that was implemented in wxWidgets, but the end result is
cleaner for wxPython as well, and allowed me to remove some ugly code
under the covers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
14 files changed:
wxPython/contrib/gizmos/wxCode/src/treelistctrl.cpp
wxPython/docs/CHANGES.txt
wxPython/include/wx/wxPython/wxPython_int.h
wxPython/src/__gdi_rename.i
wxPython/src/__gdi_reverse.txt
wxPython/src/_accel.i
wxPython/src/_core_ex.py
wxPython/src/_image.i
wxPython/src/_mimetype.i
wxPython/src/_stockobjs.i
wxPython/src/_validator.i
wxPython/src/core.i
wxPython/src/helpers.cpp
wxPython/wxPython/_gdi.py