Added typemap for wxArrayString
Added wxMimeTypesManager and wxFileType Other updates... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1493,7 +1493,8 @@ def wxPyTypeCast(obj, typeStr):
|
||||
theClass = globals()[typeStr+"Ptr"]
|
||||
typeStr = __wxPyPtrTypeMap.get(typeStr, typeStr)
|
||||
if hasattr(obj, "this"):
|
||||
if obj.__class__ is theClass: # if already the right type then just return it
|
||||
# if already the right type then just return it
|
||||
if isinstance(obj, theClass) or obj.__class__ is theClass:
|
||||
return obj
|
||||
newPtr = ptrcast(obj.this, typeStr+"_p")
|
||||
else:
|
||||
|
Reference in New Issue
Block a user