eric7/Preferences/ConfigurationPages/ShellPage.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
child 8881
54e42bc2437a
--- a/eric7/Preferences/ConfigurationPages/ShellPage.py	Sun May 16 20:07:24 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/ShellPage.py	Mon May 17 19:58:15 2021 +0200
@@ -15,11 +15,6 @@
 
 import Preferences
 
-try:
-    MonospacedFontsOption = QFontDialog.FontDialogOption.MonospacedFonts
-except AttributeError:
-    MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10)
-
 from QScintilla.Shell import ShellHistoryStyle
 
 
@@ -126,7 +121,7 @@
         """
         self.monospacedFont = self.selectFont(
             self.monospacedFontSample, self.monospacedFont,
-            options=MonospacedFontsOption)
+            options=QFontDialog.FontDialogOption.MonospacedFonts)
         
     @pyqtSlot()
     def on_linenumbersFontButton_clicked(self):
@@ -135,7 +130,7 @@
         """
         self.marginsFont = self.selectFont(
             self.marginsFontSample, self.marginsFont,
-            options=MonospacedFontsOption)
+            options=QFontDialog.FontDialogOption.MonospacedFonts)
         
     def polishPage(self):
         """

eric ide

mercurial