--- 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): """