Preferences/ConfigurationPages/HelpAppearancePage.py

changeset 4676
c65b401b775e
parent 4674
41f716db325e
child 4802
2e148b5fb483
equal deleted inserted replaced
4675:adb8882de5af 4676:c65b401b775e
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.

eric ide

mercurial