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:
@@ -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;
|
||||
|
@@ -39,6 +39,7 @@ DLG_SZE
|
||||
PyAssertionError
|
||||
|
||||
MemoryFSHandler_AddFile
|
||||
InitAllImageHandlers
|
||||
|
||||
|
||||
# With the * on the end these will cause code to be added that
|
||||
|
@@ -236,7 +236,6 @@ class PySimpleApp(wx.App):
|
||||
wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
|
||||
|
||||
def OnInit(self):
|
||||
wx.InitAllImageHandlers()
|
||||
return True
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user