28 flags=None, |
28 flags=None, |
29 ): |
29 ): |
30 """ |
30 """ |
31 Constructor |
31 Constructor |
32 |
32 |
33 @param labelText text of the dialog label (string) |
33 @param labelText text of the dialog label |
34 @param cancelButtonText text of the cancel button (string) |
34 @type str |
35 @param minimum minimum value (integer) |
35 @param cancelButtonText text of the cancel button |
36 @param maximum maximum value (integer) |
36 @type str |
37 @param labelFormat label format of the progress bar (string) |
37 @param minimum minimum value |
38 @param parent reference to the parent widget (QWidget) |
38 @type int |
39 @param flags window flags of the dialog (Qt.WindowFlags) |
39 @param maximum maximum value |
|
40 @type int |
|
41 @param labelFormat label format of the progress bar |
|
42 @type str |
|
43 @param parent reference to the parent widget |
|
44 @type QWidget |
|
45 @param flags window flags of the dialog |
|
46 @type Qt.WindowFlags |
40 """ |
47 """ |
41 if flags is None: |
48 if flags is None: |
42 flags = Qt.WindowType(0) |
49 flags = Qt.WindowType(0) |
43 super().__init__(labelText, cancelButtonText, minimum, maximum, parent, flags) |
50 super().__init__(labelText, cancelButtonText, minimum, maximum, parent, flags) |
44 |
51 |
52 |
59 |
53 def format(self): |
60 def format(self): |
54 """ |
61 """ |
55 Public method to get the progress bar format. |
62 Public method to get the progress bar format. |
56 |
63 |
57 @return progress bar format (string) |
64 @return progress bar format |
|
65 @rtype str |
58 """ |
66 """ |
59 return self.__progressBar.format() |
67 return self.__progressBar.format() |
60 |
68 |
61 def setFormat(self, labelFormat): |
69 def setFormat(self, labelFormat): |
62 """ |
70 """ |
63 Public method to set the progress bar format. |
71 Public method to set the progress bar format. |
64 |
72 |
65 @param labelFormat progress bar format (string) |
73 @param labelFormat progress bar format |
|
74 @type str |
66 """ |
75 """ |
67 self.__progressBar.setFormat(labelFormat) |
76 self.__progressBar.setFormat(labelFormat) |