17 """ |
17 """ |
18 Class implementing a progress dialog allowing a customized progress bar |
18 Class implementing a progress dialog allowing a customized progress bar |
19 label. |
19 label. |
20 """ |
20 """ |
21 def __init__(self, labelText, cancelButtonText, minimum, maximum, |
21 def __init__(self, labelText, cancelButtonText, minimum, maximum, |
22 labelFormat=None, parent=None, flags=Qt.WindowFlags()): |
22 labelFormat=None, parent=None, flags=None): |
23 """ |
23 """ |
24 Constructor |
24 Constructor |
25 |
25 |
26 @param labelText text of the dialog label (string) |
26 @param labelText text of the dialog label (string) |
27 @param cancelButtonText text of the cancel button (string) |
27 @param cancelButtonText text of the cancel button (string) |
29 @param maximum maximum value (integer) |
29 @param maximum maximum value (integer) |
30 @keyparam labelFormat label format of the progress bar (string) |
30 @keyparam labelFormat label format of the progress bar (string) |
31 @keyparam parent reference to the parent widget (QWidget) |
31 @keyparam parent reference to the parent widget (QWidget) |
32 @keyparam flags window flags of the dialog (Qt.WindowFlags) |
32 @keyparam flags window flags of the dialog (Qt.WindowFlags) |
33 """ |
33 """ |
|
34 if flags is None: |
|
35 flags = Qt.WindowFlags() |
34 super(E5ProgressDialog, self).__init__( |
36 super(E5ProgressDialog, self).__init__( |
35 labelText, cancelButtonText, minimum, maximum, parent, flags) |
37 labelText, cancelButtonText, minimum, maximum, parent, flags) |
36 |
38 |
37 self.__progressBar = QProgressBar(self) |
39 self.__progressBar = QProgressBar(self) |
38 self.__progressBar.setMinimum(minimum) |
40 self.__progressBar.setMinimum(minimum) |