--- a/Preferences/ConfigurationPages/TemplatesPage.py Sun Jan 17 13:05:52 2016 +0100 +++ b/Preferences/ConfigurationPages/TemplatesPage.py Sun Jan 17 13:40:24 2016 +0100 @@ -17,6 +17,11 @@ import Preferences +try: + MonospacedFontsOption = QFontDialog.MonospacedFonts +except AttributeError: + MonospacedFontsOption = QFontDialog.FontDialogOptions(0x10) + class TemplatesPage(ConfigurationPageBase, Ui_TemplatesPage): """ @@ -69,7 +74,7 @@ """ self.editorFont = self.selectFont( self.editorFontSample, self.editorFont, - options=QFontDialog.MonospacedFonts) + options=MonospacedFontsOption) def create(dlg):