Return the wx.SizerItem from the Add methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-04-06 04:39:11 +00:00
parent 391a2d0e2c
commit 75748473ee

View File

@ -94,8 +94,8 @@ class RowColSizer(wx.PySizer):
#if rowspan > 1 or colspan > 1:
# flag = flag | wx.EXPAND
wx.PySizer.Add(self, item, option, flag, border,
userData=(row, col, row+rowspan, col+colspan))
return wx.PySizer.Add(self, item, option, flag, border,
userData=(row, col, row+rowspan, col+colspan))
#AddWindow = Add
#AddSizer = Add
@ -113,8 +113,8 @@ class RowColSizer(wx.PySizer):
assert row != -1, "Row must be specified"
assert col != -1, "Column must be specified"
wx.PySizer.Add(self, (width, height), option, flag, border,
userData=(row, col, row+rowspan, col+colspan))
return wx.PySizer.Add(self, (width, height), option, flag, border,
userData=(row, col, row+rowspan, col+colspan))
#--------------------------------------------------
def _add( self, size, dim ):