parameters: (self, find=True)
docstring: Toggle the visiblity of a button set
          @param find: Show Find Buttons or Show Replace Buttons
docstring_summary: Toggle the visiblity of a button set
          @param find: Show Find Buttons or Show Replace Buttons
docstring_tokens: Toggle the visiblity of a button set @param find : Show Find Buttons or Show Replace Buttons
function: def _ShowButtons(self, find=True):
          """Toggle the visiblity of a button set
          @param find: Show Find Buttons or Show Replace Buttons
  
          """
          if find:
              show = [wx.ID_FIND, ID_COUNT, ID_FIND_ALL, 'fspacer']
              hide = [wx.ID_REPLACE, ID_REPLACE_ALL, 'frspacer']
          else:
              show = [wx.ID_REPLACE, ID_REPLACE_ALL, 'frspacer']
              hide = [ID_FIND_ALL, ID_COUNT, 'fspacer']
  
          # Hide extra buttons as per configured preference
          flags = self._fdata.GetFlags()
          if flags & AFR_NO_COUNT and ID_COUNT in show:
              show.remove(ID_COUNT)
              hide.append(ID_COUNT)
  
          if flags & AFR_NO_ALL_BTN:
              if ID_FIND_ALL in show:
                  show.remove(ID_FIND_ALL)
                  hide.append(ID_FIND_ALL)
              if ID_REPLACE_ALL in show:
                  show.remove(ID_REPLACE_ALL)
                  hide.append(ID_REPLACE_ALL)
  
          for ctrl in show:
              if isinstance(ctrl, basestring):
                  self._sizers[ctrl].Show(True)
              else:
                  self._sizers[ctrl].ShowItems(True)
  
          for ctrl in hide:
              if isinstance(ctrl, basestring):
                  self._sizers[ctrl].Show(False)
              else:
                  self._sizers[ctrl].ShowItems(False)
function_tokens: def _ShowButtons ( self , find = True ) : if find : show = [ wx . ID_FIND , ID_COUNT , ID_FIND_ALL , 'fspacer' ] hide = [ wx . ID_REPLACE , ID_REPLACE_ALL , 'frspacer' ] else : show = [ wx . ID_REPLACE , ID_REPLACE_ALL , 'frspacer' ] hide = [ ID_FIND_ALL , ID_COUNT , 'fspacer' ] # Hide extra buttons as per configured preference flags = self . _fdata . GetFlags ( ) if flags & AFR_NO_COUNT and ID_COUNT in show : show . remove ( ID_COUNT ) hide . append ( ID_COUNT ) if flags & AFR_NO_ALL_BTN : if ID_FIND_ALL in show : show . remove ( ID_FIND_ALL ) hide . append ( ID_FIND_ALL ) if ID_REPLACE_ALL in show : show . remove ( ID_REPLACE_ALL ) hide . append ( ID_REPLACE_ALL ) for ctrl in show : if isinstance ( ctrl , basestring ) : self . _sizers [ ctrl ] . Show ( True ) else : self . _sizers [ ctrl ] . ShowItems ( True ) for ctrl in hide : if isinstance ( ctrl , basestring ) : self . _sizers [ ctrl ] . Show ( False ) else : self . _sizers [ ctrl ] . ShowItems ( False )