parameters: (self, index, can_close=True)
docstring: Add a close button to the given segment
          @param index: segment index
          @keyword can_close: Enable/Disable
docstring_summary: Add a close button to the given segment
          @param index: segment index
          @keyword can_close: Enable/Disable
docstring_tokens: Add a close button to the given segment @param index : segment index @keyword can_close : Enable / Disable
function: def SetSegmentCanClose(self, index, can_close=True):
          """Add a close button to the given segment
          @param index: segment index
          @keyword can_close: Enable/Disable
  
          """
          if not can_close:
              opt = ctrlbox.SEGBTN_OPT_NONE
  
          elif wx.Platform == '__WXMAC__':
              opt = ctrlbox.SEGBTN_OPT_CLOSEBTNL
          else:
              opt = ctrlbox.SEGBTN_OPT_CLOSEBTNR
          self._segbar.SetSegmentOption(index, opt)
function_tokens: def SetSegmentCanClose ( self , index , can_close = True ) : if not can_close : opt = ctrlbox . SEGBTN_OPT_NONE elif wx . Platform == '__WXMAC__' : opt = ctrlbox . SEGBTN_OPT_CLOSEBTNL else : opt = ctrlbox . SEGBTN_OPT_CLOSEBTNR self . _segbar . SetSegmentOption ( index , opt )