code: def selected_layermode(self):
          
          item = self.lstLayerModes.currentItem()
          try:
              return definition(item.data(QtCore.Qt.UserRole))
          except (AttributeError, NameError):
              return None
docs: Obtain the layer mode selected by user.
          :returns: selected layer mode.
          :rtype: string, None