X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7403ad2d154a8e2974fdc5fc215258f3a75cdde..27587c251c4c500a20af0c3fbab9a849a28e4456:/wxPython/wx/lib/rcsizer.py?ds=sidebyside diff --git a/wxPython/wx/lib/rcsizer.py b/wxPython/wx/lib/rcsizer.py index 30a06ca0ef..b262aee4bd 100644 --- a/wxPython/wx/lib/rcsizer.py +++ b/wxPython/wx/lib/rcsizer.py @@ -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 ):