75 edit. |
75 edit. |
76 |
76 |
77 @param txt text of the line edit (string) |
77 @param txt text of the line edit (string) |
78 """ |
78 """ |
79 if self.conditionButton.isChecked(): |
79 if self.conditionButton.isChecked(): |
80 self.buttonBox.button(QDialogButtonBox.Ok)\ |
80 self.buttonBox.button( |
81 .setEnabled(self.conditionEdit.text() != "") |
81 QDialogButtonBox.Ok |
|
82 ).setEnabled(self.conditionEdit.text() != "") |
82 elif self.specialButton.isChecked(): |
83 elif self.specialButton.isChecked(): |
83 self.buttonBox.button(QDialogButtonBox.Ok)\ |
84 self.buttonBox.button( |
84 .setEnabled(self.specialEdit.text() != "") |
85 QDialogButtonBox.Ok |
|
86 ).setEnabled(self.specialEdit.text() != "") |
85 else: |
87 else: |
86 # should not happen |
88 # should not happen |
87 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
89 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) |
88 |
90 |
89 def getData(self): |
91 def getData(self): |