Add a wx.GridBagSizer.Add method that allows a spacer to be defined with a wx.Size (or just a tuple) as in Classic.

This commit is contained in:
Robin Dunn
2016-08-20 18:22:16 -07:00
parent ca34d719be
commit b88d08c220

View File

@@ -150,6 +150,14 @@ def run():
if func.findItem('item'):
func.find('item').transfer = True
c.addCppMethod('wxSizerItem*', 'Add',
'(const wxSize& size, const wxGBPosition& pos, '
'const wxGBSpan& span = wxDefaultSpan, int flag = 0, '
'int border = 0, wxObject* userData /Transfer/ = NULL)',
doc="Add a spacer using a :class:`Size` object.",
body="return self->Add(size->x, size->y, *pos, *span, flag, border, userData);")
c.addPyCode(
"GridBagSizer.CheckForIntersectionPos = wx.deprecated(GridBagSizer.CheckForIntersection, 'Use CheckForIntersection instead.')")