]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/gtk/wx.py
More fixes for wxPopupWindow.
[wxWidgets.git] / wxPython / src / gtk / wx.py
index 924518183f47ca0bc033052573a95f2fc92899a7..622610f34a584d4b88c23d06dba8b7e43a02fced 100644 (file)
@@ -249,6 +249,7 @@ wxTE_MULTILINE = wxc.wxTE_MULTILINE
 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
@@ -1492,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: