should review stattxt.py or one of the others to see how it is to be
done.
+wx.InitAllImageHandlers is now an empty function that does nothing but
+exist for backwards compatibility. The C++ version is now called
+automatically when wxPython is initialized. Since all the handlers
+are included in the wxWidgets shared library anyway, this imposes only
+a very small amount of overhead and removes several unneccessary
+problems.
+
+
2.5.1.5
%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;
PyAssertionError
MemoryFSHandler_AddFile
+InitAllImageHandlers
# With the * on the end these will cause code to be added that
wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
def OnInit(self):
- wx.InitAllImageHandlers()
return True
-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
// Init the stock objects to a non-NULL value so SWIG doesn't create them as None
wxPy_ReinitStockObjects(1);
+
+ wxInitAllImageHandlers();
}
wxImage_InsertHandler = wx._core.Image_InsertHandler
wxImage_RemoveHandler = wx._core.Image_RemoveHandler
wxImage_GetImageExtWildcard = wx._core.Image_GetImageExtWildcard
-wxInitAllImageHandlers = wx._core.InitAllImageHandlers
wxNullImage = wx._core.NullImage
wxIMAGE_OPTION_BMP_FORMAT = wx._core.IMAGE_OPTION_BMP_FORMAT
wxIMAGE_OPTION_CUR_HOTSPOT_X = wx._core.IMAGE_OPTION_CUR_HOTSPOT_X
wxDLG_SZE = wx._core.DLG_SZE
wxPyAssertionError = wx._core.PyAssertionError
wxMemoryFSHandler_AddFile = wx._core.MemoryFSHandler_AddFile
+wxInitAllImageHandlers = wx._core.InitAllImageHandlers
d = globals()