src/eric7/Debugger/VariablesFilterDialog.py

branch
eric7
changeset 10417
c6011e501282
parent 9653
e67609152c5e
child 10439
21c28b0f9e41
equal deleted inserted replaced
10416:5d807e997391 10417:c6011e501282
33 33
34 def __init__(self, parent=None, name=None, modal=False): 34 def __init__(self, parent=None, name=None, modal=False):
35 """ 35 """
36 Constructor 36 Constructor
37 37
38 @param parent parent widget of this dialog (QWidget) 38 @param parent reference to the parent widget
39 @param name name of this dialog (string) 39 @type QWidget
40 @param modal flag to indicate a modal dialog (boolean) 40 @param name name of this dialog
41 @type str
42 @param modal flag to indicate a modal dialog
43 @type bool
41 """ 44 """
42 super().__init__(parent) 45 super().__init__(parent)
43 if name: 46 if name:
44 self.setObjectName(name) 47 self.setObjectName(name)
45 self.setModal(modal) 48 self.setModal(modal)
116 119
117 def on_buttonBox_clicked(self, button): 120 def on_buttonBox_clicked(self, button):
118 """ 121 """
119 Private slot called by a button of the button box clicked. 122 Private slot called by a button of the button box clicked.
120 123
121 @param button button that was clicked (QAbstractButton) 124 @param button button that was clicked
125 @type QAbstractButton
122 """ 126 """
123 if button == self.__defaultButton: 127 if button == self.__defaultButton:
124 Preferences.setVarFilters(self.getSelection()) 128 Preferences.setVarFilters(self.getSelection())
125 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Reset): 129 elif button == self.buttonBox.button(QDialogButtonBox.StandardButton.Reset):
126 self.setSelection(self.__localsFilters, self.__globalsFilters) 130 self.setSelection(self.__localsFilters, self.__globalsFilters)

eric ide

mercurial