mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-07 04:20:07 +01:00
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:
@@ -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.')")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user