Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3366
6084bb3c3911
child 3656
441956d8fce5
--- a/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -34,10 +34,13 @@
         self.setupUi(self)
         
         self.bTest = self.buttonBox.addButton(
-            self.trUtf8("Test"), QDialogButtonBox.ActionRole)
+            self.tr("Test"), QDialogButtonBox.ActionRole)
         
         self.font = None
         
+        msh = self.minimumSizeHint()
+        self.resize(max(self.width(), msh.width()), msh.height())
+        
     def on_buttonBox_clicked(self, button):
         """
         Private slot called by a button of the button box clicked.
@@ -124,7 +127,7 @@
             if title:
                 code += ',{0}{1}{2}'.format(
                     os.linesep, istring, parent)
-                code += ',{0}{1}self.trUtf8("{2}")'.format(
+                code += ',{0}{1}self.tr("{2}")'.format(
                     os.linesep, istring, title)
             elif parent != "None":
                 code += ',{0}{1}{2}'.format(

eric ide

mercurial