code: def getIcon(self, glyph, isOpen, color=None):
          
          try:
              fileName = self._registry[(glyph, isOpen)]
          except KeyError:
              logger.warn("Unregistered icon glyph: {} (open={})".format(glyph, isOpen))
              from argos.utils.misc import log_dictionary
              log_dictionary(self._registry, "registry", logger=logger)
              raise
  
          return self.loadIcon(fileName, color=color)
docs: Returns a QIcon given a glyph name, open/closed state and color.
  
              The reslulting icon is cached so that it only needs to be rendered once.
  
              :param glyph: name of a registered glyph (e.g. 'file', 'array')
              :param isOpen: boolean that indicates if the RTI is open or closed.
              :param color: '#RRGGBB' string (e.g. '#FF0000' for red)
              :return: QtGui.QIcon