wxTE_AUTO_SCROLL = wxc.wxTE_AUTO_SCROLL
wxTE_NO_VSCROLL = wxc.wxTE_NO_VSCROLL
wxTE_AUTO_URL = wxc.wxTE_AUTO_URL
+wxTE_NOHIDESEL = wxc.wxTE_NOHIDESEL
wxCB_SIMPLE = wxc.wxCB_SIMPLE
wxCB_DROPDOWN = wxc.wxCB_DROPDOWN
wxCB_SORT = wxc.wxCB_SORT
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: