parameters: (self, iconset, base_dir)
docstring: Initialise the icon set from an XML tag.
docstring_summary: Initialise the icon set from an XML tag.
docstring_tokens: Initialise the icon set from an XML tag .
function: def __init__(self, iconset, base_dir):
          """Initialise the icon set from an XML tag."""
  
          # Set the pre-Qt v4.4 fallback (ie. with no roles).
          self._fallback = self._file_name(iconset.text, base_dir)
          self._use_fallback = True
  
          # Parse the icon set.
          self._roles = {}
  
          for i in iconset:
              file_name = i.text
              if file_name is not None:
                  file_name = self._file_name(file_name, base_dir)
  
              self._roles[i.tag] = file_name
              self._use_fallback = False
  
          # There is no real icon yet.
          self.icon = None
function_tokens: def __init__ ( self , iconset , base_dir ) : # Set the pre-Qt v4.4 fallback (ie. with no roles). self . _fallback = self . _file_name ( iconset . text , base_dir ) self . _use_fallback = True # Parse the icon set. self . _roles = { } for i in iconset : file_name = i . text if file_name is not None : file_name = self . _file_name ( file_name , base_dir ) self . _roles [ i . tag ] = file_name self . _use_fallback = False # There is no real icon yet. self . icon = None