37:01822a402c97 | 38:6a12561fc0b5 |
---|---|
5 | 5 |
6 """ | 6 """ |
7 Module implementing a dialog to enter the CSS conversion parameters. | 7 Module implementing a dialog to enter the CSS conversion parameters. |
8 """ | 8 """ |
9 | 9 |
10 from PyQt5.QtWidgets import QDialog | 10 from PyQt6.QtWidgets import QDialog |
11 | 11 |
12 from .Ui_Html5ToCss3ConverterParameterDialog import ( | 12 from .Ui_Html5ToCss3ConverterParameterDialog import ( |
13 Ui_Html5ToCss3ConverterParameterDialog | 13 Ui_Html5ToCss3ConverterParameterDialog |
14 ) | 14 ) |
15 | 15 |
21 """ | 21 """ |
22 def __init__(self, parent=None): | 22 def __init__(self, parent=None): |
23 """ | 23 """ |
24 Constructor | 24 Constructor |
25 | 25 |
26 @param parent reference to the parent widget (QWidget) | 26 @param parent reference to the parent widget |
27 @type QWidget | |
27 """ | 28 """ |
28 super().__init__(parent) | 29 super().__init__(parent) |
29 self.setupUi(self) | 30 self.setupUi(self) |
30 | 31 |
31 msh = self.minimumSizeHint() | 32 msh = self.minimumSizeHint() |
33 | 34 |
34 def getData(self): | 35 def getData(self): |
35 """ | 36 """ |
36 Public method to get the entered data. | 37 Public method to get the entered data. |
37 | 38 |
38 @return tuple of indentation string (string) and a flag indicating to | 39 @return tuple of indentation string and a flag indicating to use CSS |
39 use CSS placeholders (boolean) | 40 placeholders |
41 @rtype tuple of (str, bool) | |
40 """ | 42 """ |
41 placeholders = self.placeholderComboBox.currentIndex() == 1 | 43 placeholders = self.placeholderComboBox.currentIndex() == 1 |
42 return " " * self.indentationSpinBox.value(), placeholders | 44 return " " * self.indentationSpinBox.value(), placeholders |