code: def createPen(self, altStyle=None, altWidth=None):
          
          pen = self.configValue
          if pen is not None:
  
              style = self.findByNodePath('style').configValue
              if style is None and altStyle is not None:
                  pen.setStyle(altStyle)
  
              width = self.findByNodePath('width').configValue
              if width == 0.0 and altWidth is not None:
                  #logger.debug("Setting altWidth = {!r}".format(altWidth))
                  pen.setWidthF(altWidth)
  
          return pen
docs: Creates a pen from the config values with the style overridden by altStyle if the
              None-option is selected in the combo box.