UI/DeleteFilesConfirmationDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to confirm deletion of multiple files. 7 Module implementing a dialog to confirm deletion of multiple files.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
9 11
10 from PyQt4.QtGui import QDialog, QDialogButtonBox 12 from PyQt4.QtGui import QDialog, QDialogButtonBox
11 13
12 from .Ui_DeleteFilesConfirmationDialog import Ui_DeleteFilesConfirmationDialog 14 from .Ui_DeleteFilesConfirmationDialog import Ui_DeleteFilesConfirmationDialog
13 15
25 @param message message to be shown (string) 27 @param message message to be shown (string)
26 @param okLabel label for the OK button (string) 28 @param okLabel label for the OK button (string)
27 @param cancelLabel label for the Cancel button (string) 29 @param cancelLabel label for the Cancel button (string)
28 @param files list of filenames to be shown (list of strings) 30 @param files list of filenames to be shown (list of strings)
29 """ 31 """
30 super().__init__(parent) 32 super(DeleteFilesConfirmationDialog, self).__init__(parent)
31 self.setupUi(self) 33 self.setupUi(self)
32 self.setModal(True) 34 self.setModal(True)
33 35
34 self.buttonBox.button(QDialogButtonBox.Yes).setAutoDefault(False) 36 self.buttonBox.button(QDialogButtonBox.Yes).setAutoDefault(False)
35 self.buttonBox.button(QDialogButtonBox.No).setDefault(True) 37 self.buttonBox.button(QDialogButtonBox.No).setDefault(True)

eric ide

mercurial