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:
Robin Dunn
2001-10-30 06:53:13 +00:00
parent b37c7e1dcd
commit 5c0282d504
10 changed files with 2271 additions and 113 deletions

View File

@@ -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: