eric7/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py

branch
eric7
changeset 8318
962bce857696
parent 8312
800c432b34c8
child 8324
83084f088655
diff -r 0c7a44af84bc -r 962bce857696 eric7/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py
--- a/eric7/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py	Sun May 16 11:43:59 2021 +0200
+++ b/eric7/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py	Sun May 16 20:07:24 2021 +0200
@@ -9,8 +9,8 @@
 
 import os
 
-from PyQt5.QtCore import pyqtSlot
-from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QFontDialog
+from PyQt6.QtCore import pyqtSlot
+from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QFontDialog
 
 from .Ui_FontDialogWizardDialog import Ui_FontDialogWizardDialog
 
@@ -117,7 +117,7 @@
                 code += '{0}{1}'.format(os.linesep, istring)
             if not self.eVariable.text():
                 if self.font is not None:
-                    code += 'QFont("{0}", {1:d}, {2:d}, {3:d})'.format(
+                    code += 'QFont(["{0}"], {1:d}, {2:d}, {3:d})'.format(
                         self.font.family(), self.font.pointSize(),
                         self.font.weight(), self.font.italic())
             else:

eric ide

mercurial