]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/mac/_core.py
Added typeId property
[wxWidgets.git] / wxPython / src / mac / _core.py
index 489201d9032de38ef4211bca448ff8d5d572a736..11b33905de1bd77d357c9814a22cf77864c6f8bf 100644 (file)
@@ -10728,9 +10728,15 @@ class Menu(EvtHandler):
         """Remove(self, int id) -> MenuItem"""
         return _core_.Menu_Remove(*args, **kwargs)
 
-    def RemoveItem(*args, **kwargs):
+    def RemoveItem(self, item):
         """RemoveItem(self, MenuItem item) -> MenuItem"""
-        return _core_.Menu_RemoveItem(*args, **kwargs)
+        #// The return object is always the parameter, so return that 
+        #// proxy instead of the new one
+        val = _core_.Menu_RemoveItem(self, item)
+        item.this.own(val.this.own())
+        val.this.disown()
+        return item
+
 
     def Delete(*args, **kwargs):
         """Delete(self, int id) -> bool"""