src/eric7/DataViews/PyProfileDialog.py

branch
eric7
changeset 10689
3ede487187f2
parent 10439
21c28b0f9e41
child 10704
27d21e5163b8
equal deleted inserted replaced
10688:0d9853ceb288 10689:3ede487187f2
319 self.cancelled = False 319 self.cancelled = False
320 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False) 320 self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(False)
321 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True) 321 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setEnabled(True)
322 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True) 322 self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setDefault(True)
323 323
324 def closeEvent(self, evt): 324 def closeEvent(self, _evt):
325 """ 325 """
326 Protected method to handle the close event. 326 Protected method to handle the close event.
327 327
328 @param evt reference to the close event 328 @param _evt reference to the close event (unused)
329 @type QCloseEvent 329 @type QCloseEvent
330 """ 330 """
331 self.cancelled = True 331 self.cancelled = True
332 # The rest is done by the __populateLists() method. 332 # The rest is done by the __populateLists() method.
333 333

eric ide

mercurial