Debugger/EditWatchpointDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2677
3d4277929fb3
parent 2988
f53c03574697
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
21 def __init__(self, properties, parent=None, name=None, modal=False): 21 def __init__(self, properties, parent=None, name=None, modal=False):
22 """ 22 """
23 Constructor 23 Constructor
24 24
25 @param properties properties for the watch expression (tuple) 25 @param properties properties for the watch expression (tuple)
26 (expression, temporary flag, enabled flag, ignore count, special condition) 26 (expression, temporary flag, enabled flag, ignore count,
27 special condition)
27 @param parent the parent of this dialog 28 @param parent the parent of this dialog
28 @param name the widget name of this dialog 29 @param name the widget name of this dialog
29 @param modal flag indicating a modal dialog 30 @param modal flag indicating a modal dialog
30 """ 31 """
31 super(EditWatchpointDialog, self).__init__(parent) 32 super(EditWatchpointDialog, self).__init__(parent)
66 else: 67 else:
67 self.specialEdit.setFocus() 68 self.specialEdit.setFocus()
68 69
69 def __textChanged(self, txt): 70 def __textChanged(self, txt):
70 """ 71 """
71 Private slot to handle the text changed signal of the condition line edit. 72 Private slot to handle the text changed signal of the condition line
73 edit.
72 74
73 @param txt text of the line edit (string) 75 @param txt text of the line edit (string)
74 """ 76 """
75 if self.conditionButton.isChecked(): 77 if self.conditionButton.isChecked():
76 self.buttonBox.button(QDialogButtonBox.Ok)\ 78 self.buttonBox.button(QDialogButtonBox.Ok)\
85 def getData(self): 87 def getData(self):
86 """ 88 """
87 Public method to retrieve the entered data. 89 Public method to retrieve the entered data.
88 90
89 @return a tuple containing the watch expressions new properties 91 @return a tuple containing the watch expressions new properties
90 (expression, temporary flag, enabled flag, ignore count, special condition) 92 (expression, temporary flag, enabled flag, ignore count,
93 special condition)
91 """ 94 """
92 if self.conditionButton.isChecked(): 95 if self.conditionButton.isChecked():
93 return (self.conditionEdit.text(), 96 return (self.conditionEdit.text(),
94 self.temporaryCheckBox.isChecked(), 97 self.temporaryCheckBox.isChecked(),
95 self.enabledCheckBox.isChecked(), 98 self.enabledCheckBox.isChecked(),

eric ide

mercurial