eric6/Preferences/SubstyleDefinitionDialog.py

changeset 7263
c1af2e327675
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7262:c4b5f3393d63 7263:c1af2e327675
97 @pyqtSlot() 97 @pyqtSlot()
98 def on_defaultButton_clicked(self): 98 def on_defaultButton_clicked(self):
99 """ 99 """
100 Private slot to set the dialog contents to default values. 100 Private slot to set the dialog contents to default values.
101 """ 101 """
102 filled = bool(self.descriptionEdit.text().strip()) or \ 102 filled = (
103 bool(self.descriptionEdit.text().strip()) or
103 bool(self.wordsEdit.toPlainText().strip()) 104 bool(self.wordsEdit.toPlainText().strip())
105 )
104 if filled: 106 if filled:
105 ok = E5MessageBox.yesNo( 107 ok = E5MessageBox.yesNo(
106 self, 108 self,
107 self.tr("Set Sub-Style Data to Default"), 109 self.tr("Set Sub-Style Data to Default"),
108 self.tr("""Shall the sub-style data be set to default""" 110 self.tr("""Shall the sub-style data be set to default"""

eric ide

mercurial