If I have the following snippet of code (from a larger section):
Qt Code:
  1. if self.generator.MS == "S":
  2. self.lockSpouseBoxes(True)
  3. else:
  4. self.lockSpouseBoxes(False)
  6. def lockSpouseBoxes(self):
  8. self.ui.lineEdit1.setEnabled(variable for True or False)
To copy to clipboard, switch view to plain text mode 

How do I modify either/both the top part and the bottom function to carry the True or False from the top part to the function (there will be many line edits to setEnabled true or false). Stated another way, if MS == "S", I want to set a bunch of line edits to "setEnabled(True)" and vice versa. I'm new and not quite sure how to phrase the question.