parameters: (self)
docstring: If no rules are selected in the view, grey out the Delete... item
docstring_summary: If no rules are selected in the view, grey out the Delete... item
docstring_tokens: If no rules are selected in the view grey out the Delete ... item
function: def rulesMenuTriggered(self):
          "If no rules are selected in the view, grey out the Delete... item"
          if (len(self.tableView.selectedIndexes()) == 0):
              self.menuRules.actions()[0].setEnabled(False)
          else:
              self.menuRules.actions()[0].setEnabled(True)
function_tokens: def rulesMenuTriggered ( self ) : if ( len ( self . tableView . selectedIndexes ( ) ) == 0 ) : self . menuRules . actions ( ) [ 0 ] . setEnabled ( False ) else : self . menuRules . actions ( ) [ 0 ] . setEnabled ( True )