]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_gbsizer.i
update the text of a read-only combobox (and hence wxChoice) when selection is change...
[wxWidgets.git] / wxPython / src / _gbsizer.i
index 19a31686ea851f30315fb851647e53dcde22e0ad..c100893129f867b10fbb4d2823da38cdf7e58170 100644 (file)
@@ -554,7 +554,17 @@ Find the sizer item for the given window or subsizer, returns None if
 not found. (non-recursive)", "");
     wxGBSizerItem* FindItem(wxWindow* window);
     wxGBSizerItem* FindItem(wxSizer* sizer);
-
+    %pythoncode {
+        def GetItem(self, item):
+            gbsi = None
+            si = wx.FlexGridSizer.GetItem(self, item)
+            if not si:
+                return None
+            if type(item) is not int:
+                gbsi = self.FindItem(item)
+            if gbsi: return gbsi
+            return si
+    }
     
     DocDeclStr(
         wxGBSizerItem* , FindItemAtPosition(const wxGBPosition& pos),