X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1fce4e96684d8709038e18dc3fc0ac6414e058e8..26ee65c723cf55822c540506f064ec11d9b26858:/wxPython/src/_gbsizer.i diff --git a/wxPython/src/_gbsizer.i b/wxPython/src/_gbsizer.i index 412ad058e5..c100893129 100644 --- a/wxPython/src/_gbsizer.i +++ b/wxPython/src/_gbsizer.i @@ -393,6 +393,10 @@ is successful and after the next Layout() the item will be resized. void , SetGBSizer(wxGridBagSizer* sizer), "Set the sizer this item is a member of.", ""); + %property(EndPos, GetEndPos, doc="See `GetEndPos`"); + %property(GBSizer, GetGBSizer, SetGBSizer, doc="See `GetGBSizer` and `SetGBSizer`"); + %property(Pos, GetPos, SetPos, doc="See `GetPos` and `SetPos`"); + %property(Span, GetSpan, SetSpan, doc="See `GetSpan` and `SetSpan`"); }; @@ -550,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), @@ -599,7 +613,6 @@ for intersection, for example it may be the item we are checking the position of.", "", CheckForIntersectionPos); - };