def DoSetSpacer(self, size):
        '''

        Modeled after DoSetSpacer in sizer.cpp file of wxWidgets.
        '''
        self.ts_Kind = wx.Item_Spacer
        self.ts_Spacer = wxSizerSpacer(size)
        self.ts_MinSize = size
        self.SetRatio(size)
    def SetSpacer(self, size):
        '''
        Set the size of the spacer to be managed by this sizer item.

        Modeled after SetSpacer in sizer.h file of wxWidgets.
        '''
        self.logger.wxASSERT_MSG(
           (size is None),
           'SizerItem.SetSpacer size cannot be %s.' % size)

        self.ts_Kind = wx.Item_Spacer

        theSize = wx.tsGetClassInstanceFromTuple(size, wxSize)
        self.ts_Spacer = wxSizerSpacer(theSize)
        self.ts_MinSize = theSize
        self.SetRatio(theSize)