Preferences/ConfigurationPages/HexEditorPage.py

changeset 4676
c65b401b775e
parent 4673
6fa2418f010c
child 4695
9dc08852de25
--- a/Preferences/ConfigurationPages/HexEditorPage.py	Sun Jan 17 13:05:52 2016 +0100
+++ b/Preferences/ConfigurationPages/HexEditorPage.py	Sun Jan 17 13:40:24 2016 +0100
@@ -18,6 +18,11 @@
 
 import Preferences
 
+try:
+    MonospacedFontsOption = QFontDialog.MonospacedFonts
+except AttributeError:
+    MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10)
+
 
 class HexEditorPage(ConfigurationPageBase, Ui_HexEditorPage):
     """
@@ -98,7 +103,7 @@
         """
         self.monospacedFont = self.selectFont(
             self.monospacedFontSample, self.monospacedFont,
-            options=QFontDialog.MonospacedFonts)
+            options=MonospacedFontsOption)
     
     def polishPage(self):
         """

eric ide

mercurial