Preferences/ConfigurationPages/HelpAppearancePage.py

changeset 4676
c65b401b775e
parent 4674
41f716db325e
child 4802
2e148b5fb483
diff -r adb8882de5af -r c65b401b775e Preferences/ConfigurationPages/HelpAppearancePage.py
--- a/Preferences/ConfigurationPages/HelpAppearancePage.py	Sun Jan 17 13:05:52 2016 +0100
+++ b/Preferences/ConfigurationPages/HelpAppearancePage.py	Sun Jan 17 13:40:24 2016 +0100
@@ -19,6 +19,11 @@
 
 import Preferences
 
+try:
+    MonospacedFontsOption = QFontDialog.MonospacedFonts
+except AttributeError:
+    MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10)
+
 
 class HelpAppearancePage(ConfigurationPageBase, Ui_HelpAppearancePage):
     """
@@ -124,9 +129,9 @@
         """
         Private method used to select the fixed-width font.
         """
-        self.fixedFont = \
-            self.selectFont(self.fixedFontSample, self.fixedFont, True,
-            options=QFontDialog.MonospacedFonts)
+        self.fixedFont = self.selectFont(
+            self.fixedFontSample, self.fixedFont, True,
+            options=MonospacedFontsOption)
     
 
 def create(dlg):

eric ide

mercurial