16 |
16 |
17 from .ConfigurationPageBase import ConfigurationPageBase |
17 from .ConfigurationPageBase import ConfigurationPageBase |
18 from .Ui_HelpAppearancePage import Ui_HelpAppearancePage |
18 from .Ui_HelpAppearancePage import Ui_HelpAppearancePage |
19 |
19 |
20 import Preferences |
20 import Preferences |
|
21 |
|
22 try: |
|
23 MonospacedFontsOption = QFontDialog.MonospacedFonts |
|
24 except AttributeError: |
|
25 MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10) |
21 |
26 |
22 |
27 |
23 class HelpAppearancePage(ConfigurationPageBase, Ui_HelpAppearancePage): |
28 class HelpAppearancePage(ConfigurationPageBase, Ui_HelpAppearancePage): |
24 """ |
29 """ |
25 Class implementing the Help Viewer Appearance page. |
30 Class implementing the Help Viewer Appearance page. |
122 @pyqtSlot() |
127 @pyqtSlot() |
123 def on_fixedFontButton_clicked(self): |
128 def on_fixedFontButton_clicked(self): |
124 """ |
129 """ |
125 Private method used to select the fixed-width font. |
130 Private method used to select the fixed-width font. |
126 """ |
131 """ |
127 self.fixedFont = \ |
132 self.fixedFont = self.selectFont( |
128 self.selectFont(self.fixedFontSample, self.fixedFont, True, |
133 self.fixedFontSample, self.fixedFont, True, |
129 options=QFontDialog.MonospacedFonts) |
134 options=MonospacedFontsOption) |
130 |
135 |
131 |
136 |
132 def create(dlg): |
137 def create(dlg): |
133 """ |
138 """ |
134 Module function to create the configuration page. |
139 Module function to create the configuration page. |