eric7/Preferences/ConfigurationPages/TemplatesPage.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
child 8881
54e42bc2437a
--- a/eric7/Preferences/ConfigurationPages/TemplatesPage.py	Sun May 16 20:07:24 2021 +0200
+++ b/eric7/Preferences/ConfigurationPages/TemplatesPage.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)
-
 
 class TemplatesPage(ConfigurationPageBase, Ui_TemplatesPage):
     """
@@ -72,7 +67,7 @@
         """
         self.editorFont = self.selectFont(
             self.editorFontSample, self.editorFont,
-            options=MonospacedFontsOption)
+            options=QFontDialog.FontDialogOption.MonospacedFonts)
     
 
 def create(dlg):

eric ide

mercurial