from streams import *
import wx
-import string
import types
def wxMemoryFSHandler_AddFile(filename, a, b=''):
- if isinstance(a, wxImage):
+ if wx.wxPy_isinstance(a, (wxImage, wxImagePtr)):
__wxMemoryFSHandler_AddFile_wxImage(filename, a, b)
- elif isinstance(a, wxBitmap):
+ elif wx.wxPy_isinstance(a, (wxBitmap, wxBitmapPtr)):
__wxMemoryFSHandler_AddFile_wxBitmap(filename, a, b)
elif type(a) == types.StringType:
#__wxMemoryFSHandler_AddFile_wxString(filename, a)