wx.InitAllImageHandlers is now an empty function that does nothing but

exist for backwards compatibility.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-05-17 19:16:17 +00:00
parent 571d14b262
commit a31507415d
7 changed files with 23 additions and 4 deletions

View File

@@ -485,7 +485,6 @@
%rename(ImageHandler) wxImageHandler;
%rename(ImageHistogram) wxImageHistogram;
%rename(Image) wxImage;
%rename(InitAllImageHandlers) wxInitAllImageHandlers;
%rename(NullImage) wxNullImage;
%rename(IMAGE_RESOLUTION_INCHES) wxIMAGE_RESOLUTION_INCHES;
%rename(IMAGE_RESOLUTION_CM) wxIMAGE_RESOLUTION_CM;

View File

@@ -39,6 +39,7 @@ DLG_SZE
PyAssertionError
MemoryFSHandler_AddFile
InitAllImageHandlers
# With the * on the end these will cause code to be added that

View File

@@ -236,7 +236,6 @@ class PySimpleApp(wx.App):
wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
def OnInit(self):
wx.InitAllImageHandlers()
return True

View File

@@ -332,7 +332,17 @@ success flag and rgb values.", "");
void wxInitAllImageHandlers();
///void wxInitAllImageHandlers();
%pythoncode {
def InitAllImageHandlers():
"""
The former functionality of InitAllImageHanders is now done internal to
the _core_ extension module and so this function has become a simple NOP.
"""
pass
}
// See also wxPy_ReinitStockObjects in helpers.cpp

View File

@@ -523,6 +523,8 @@ void __wxPyPreStart(PyObject* moduleDict)
// Init the stock objects to a non-NULL value so SWIG doesn't create them as None
wxPy_ReinitStockObjects(1);
wxInitAllImageHandlers();
}