Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3366
6084bb3c3911
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
30 """ 30 """
31 super().__init__(parent) 31 super().__init__(parent)
32 self.setupUi(self) 32 self.setupUi(self)
33 33
34 self.bTest = self.buttonBox.addButton( 34 self.bTest = self.buttonBox.addButton(
35 self.trUtf8("Test"), QDialogButtonBox.ActionRole) 35 self.tr("Test"), QDialogButtonBox.ActionRole)
36 36
37 self.font = None 37 self.font = None
38 38
39 def on_buttonBox_clicked(self, button): 39 def on_buttonBox_clicked(self, button):
40 """ 40 """
120 else: 120 else:
121 code += self.eVariable.text() 121 code += self.eVariable.text()
122 if title: 122 if title:
123 code += ',{0}{1}{2}'.format( 123 code += ',{0}{1}{2}'.format(
124 os.linesep, istring, parent) 124 os.linesep, istring, parent)
125 code += ',{0}{1}self.trUtf8("{2}")'.format( 125 code += ',{0}{1}self.tr("{2}")'.format(
126 os.linesep, istring, title) 126 os.linesep, istring, title)
127 elif parent != "None": 127 elif parent != "None":
128 code += ',{0}{1}{2}'.format( 128 code += ',{0}{1}{2}'.format(
129 os.linesep, istring, parent) 129 os.linesep, istring, parent)
130 code += '){0}'.format(estring) 130 code += '){0}'.format(estring)

eric ide

mercurial