gui/component.py
def _sizer_add(self, child):
        "called when adding a control to the window"
        if self.sizer:
            if DEBUG: print "adding to sizer:", child.name
            border = None
            if not border:
                border = child.sizer_border
            flags = child._sizer_flags
            if child.sizer_align:
                flags |= child._sizer_align
            if child.sizer_expand:
                flags |= wx.EXPAND
            if 'grid' in self.sizer:
                self._sizer.Add(child.wx_obj, flag=flags, border=border, 
                                pos=(child.sizer_row, child.sizer_col), 
                                span=(child.sizer_rowspan, child.sizer_colspan))
            else:
                self._sizer.Add(child.wx_obj, 0, flags, border)
def _sizer_add(self, child):
        "called when adding a control to the window"
        if self.sizer:
            if DEBUG: print "adding to sizer:", child.name
            border = None
            if not border:
                border = child.sizer_border
            flags = child._sizer_flags
            if child.sizer_align:
                flags |= child._sizer_align
            if child.sizer_expand:
                flags |= wx.EXPAND
            if 'grid' in self.sizer:
                self._sizer.Add(child.wx_obj, flag=flags, border=border, 
                                pos=(child.sizer_row, child.sizer_col), 
                                span=(child.sizer_rowspan, child.sizer_colspan))
            else:
                self._sizer.Add(child.wx_obj, 0, flags, border)
called when adding a control to the window