32 """ |
32 """ |
33 super(FontDialogWizardDialog, self).__init__(parent) |
33 super(FontDialogWizardDialog, self).__init__(parent) |
34 self.setupUi(self) |
34 self.setupUi(self) |
35 |
35 |
36 self.bTest = self.buttonBox.addButton( |
36 self.bTest = self.buttonBox.addButton( |
37 self.trUtf8("Test"), QDialogButtonBox.ActionRole) |
37 self.tr("Test"), QDialogButtonBox.ActionRole) |
38 |
38 |
39 self.font = None |
39 self.font = None |
|
40 |
|
41 msh = self.minimumSizeHint() |
|
42 self.resize(max(self.width(), msh.width()), msh.height()) |
40 |
43 |
41 def on_buttonBox_clicked(self, button): |
44 def on_buttonBox_clicked(self, button): |
42 """ |
45 """ |
43 Private slot called by a button of the button box clicked. |
46 Private slot called by a button of the button box clicked. |
44 |
47 |
122 else: |
125 else: |
123 code += self.eVariable.text() |
126 code += self.eVariable.text() |
124 if title: |
127 if title: |
125 code += ',{0}{1}{2}'.format( |
128 code += ',{0}{1}{2}'.format( |
126 os.linesep, istring, parent) |
129 os.linesep, istring, parent) |
127 code += ',{0}{1}self.trUtf8("{2}")'.format( |
130 code += ',{0}{1}self.tr("{2}")'.format( |
128 os.linesep, istring, title) |
131 os.linesep, istring, title) |
129 elif parent != "None": |
132 elif parent != "None": |
130 code += ',{0}{1}{2}'.format( |
133 code += ',{0}{1}{2}'.format( |
131 os.linesep, istring, parent) |
134 os.linesep, istring, parent) |
132 code += '){0}'.format(estring) |
135 code += '){0}'.format(estring) |