parameters: (self, symbol)
docstring: Set selected item in combobox by giving the atomic symbol
  
          :param symbol: Symbol of element to be selected
docstring_summary: Set selected item in combobox by giving the atomic symbol
docstring_tokens: Set selected item in combobox by giving the atomic symbol
function: def setSelection(self, symbol):
          """Set selected item in combobox by giving the atomic symbol
  
          :param symbol: Symbol of element to be selected
          """
          # accept PeriodicTableItem for getter/setter consistency
          if isinstance(symbol, PeriodicTableItem):
              symbol = symbol.symbol
          symblist = [elmt.symbol for elmt in _default_table_items]
          self.setCurrentIndex(symblist.index(symbol))
function_tokens: def setSelection ( self , symbol ) : # accept PeriodicTableItem for getter/setter consistency if isinstance ( symbol , PeriodicTableItem ) : symbol = symbol . symbol symblist = [ elmt . symbol for elmt in _default_table_items ] self . setCurrentIndex ( symblist . index ( symbol ) )