eric7/Preferences/ConfigurationPages/HexEditorPage.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
child 8875
67c3ea933787
--- a/eric7/Preferences/ConfigurationPages/HexEditorPage.py	Sun May 16 20:07:24 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/HexEditorPage.py	Mon May 17 19:58:15 2021 +0200
@@ -16,11 +16,6 @@
 
 import Preferences
 
-try:
-    MonospacedFontsOption = QFontDialog.FontDialogOption.MonospacedFonts
-except AttributeError:
-    MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10)
-
 
 class HexEditorPage(ConfigurationPageBase, Ui_HexEditorPage):
     """
@@ -105,7 +100,7 @@
         """
         self.monospacedFont = self.selectFont(
             self.monospacedFontSample, self.monospacedFont,
-            options=MonospacedFontsOption)
+            options=QFontDialog.FontDialogOption.MonospacedFonts)
     
     def polishPage(self):
         """

eric ide

mercurial