eric6/Debugger/EditWatchpointDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
31 self.setupUi(self) 31 self.setupUi(self)
32 if name: 32 if name:
33 self.setObjectName(name) 33 self.setObjectName(name)
34 self.setModal(modal) 34 self.setModal(modal)
35 35
36 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 36 self.buttonBox.button(
37 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
37 38
38 # connect our widgets 39 # connect our widgets
39 self.conditionEdit.textChanged.connect(self.__textChanged) 40 self.conditionEdit.textChanged.connect(self.__textChanged)
40 self.specialEdit.textChanged.connect(self.__textChanged) 41 self.specialEdit.textChanged.connect(self.__textChanged)
41 42
75 76
76 @param txt text of the line edit (string) 77 @param txt text of the line edit (string)
77 """ 78 """
78 if self.conditionButton.isChecked(): 79 if self.conditionButton.isChecked():
79 self.buttonBox.button( 80 self.buttonBox.button(
80 QDialogButtonBox.Ok 81 QDialogButtonBox.StandardButton.Ok
81 ).setEnabled(self.conditionEdit.text() != "") 82 ).setEnabled(self.conditionEdit.text() != "")
82 elif self.specialButton.isChecked(): 83 elif self.specialButton.isChecked():
83 self.buttonBox.button( 84 self.buttonBox.button(
84 QDialogButtonBox.Ok 85 QDialogButtonBox.StandardButton.Ok
85 ).setEnabled(self.specialEdit.text() != "") 86 ).setEnabled(self.specialEdit.text() != "")
86 else: 87 else:
87 # should not happen 88 # should not happen
88 self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) 89 self.buttonBox.button(
90 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
89 91
90 def getData(self): 92 def getData(self):
91 """ 93 """
92 Public method to retrieve the entered data. 94 Public method to retrieve the entered data.
93 95

eric ide

mercurial