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) |