Preferences/ConfigurationPages/TemplatesPage.py

changeset 4674
41f716db325e
parent 4631
5c1a96925da4
child 4676
c65b401b775e
--- a/Preferences/ConfigurationPages/TemplatesPage.py	Sun Jan 17 12:57:23 2016 +0100
+++ b/Preferences/ConfigurationPages/TemplatesPage.py	Sun Jan 17 13:04:48 2016 +0100
@@ -10,6 +10,7 @@
 from __future__ import unicode_literals
 
 from PyQt5.QtCore import pyqtSlot
+from PyQt5.QtWidgets import QFontDialog
 
 from .ConfigurationPageBase import ConfigurationPageBase
 from .Ui_TemplatesPage import Ui_TemplatesPage
@@ -67,7 +68,8 @@
         Private method used to select the font to be used by the code editor.
         """
         self.editorFont = self.selectFont(
-            self.editorFontSample, self.editorFont)
+            self.editorFontSample, self.editorFont,
+            options=QFontDialog.MonospacedFonts)
     
 
 def create(dlg):

eric ide

mercurial