--- a/eric7/Preferences/ConfigurationPages/EditorStylesPage.py Sun May 16 20:07:24 2021 +0200 +++ b/eric7/Preferences/ConfigurationPages/EditorStylesPage.py Mon May 17 19:58:15 2021 +0200 @@ -17,11 +17,6 @@ import Preferences -try: - MonospacedFontsOption = QFontDialog.FontDialogOption.MonospacedFonts -except AttributeError: - MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10) - class EditorStylesPage(ConfigurationPageBase, Ui_EditorStylesPage): """ @@ -412,7 +407,7 @@ """ self.marginsFont = self.selectFont( self.marginsFontSample, self.marginsFont, - options=MonospacedFontsOption) + options=QFontDialog.FontDialogOption.MonospacedFonts) @pyqtSlot() def on_defaultFontButton_clicked(self): @@ -430,7 +425,7 @@ """ self.monospacedFont = self.selectFont( self.monospacedFontSample, self.monospacedFont, - options=MonospacedFontsOption) + options=QFontDialog.FontDialogOption.MonospacedFonts) def polishPage(self): """