Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py

changeset 2893
150de635fa29
parent 2302
f29e9405c851
child 3056
9986ec0e559a
child 3119
8b19074bb239
equal deleted inserted replaced
2892:b601ede6dbbf 2893:150de635fa29
38 self.eDoubleFrom.setValidator( 38 self.eDoubleFrom.setValidator(
39 QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleFrom)) 39 QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleFrom))
40 self.eDoubleTo.setValidator( 40 self.eDoubleTo.setValidator(
41 QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleTo)) 41 QDoubleValidator(-2147483647, 2147483647, 99, self.eDoubleTo))
42 42
43 self.bTest = \ 43 self.bTest = self.buttonBox.addButton(
44 self.buttonBox.addButton(self.trUtf8("Test"), QDialogButtonBox.ActionRole) 44 self.trUtf8("Test"), QDialogButtonBox.ActionRole)
45 45
46 @pyqtSlot(bool) 46 @pyqtSlot(bool)
47 def on_rItem_toggled(self, checked): 47 def on_rItem_toggled(self, checked):
48 """ 48 """
49 Private slot to perform actions dependant on the item type selection. 49 Private slot to perform actions dependant on the item type selection.
179 code += 'None,{0}{1}'.format(os.linesep, istring) 179 code += 'None,{0}{1}'.format(os.linesep, istring)
180 code += 'self.trUtf8("{0}"),{1}{2}'.format( 180 code += 'self.trUtf8("{0}"),{1}{2}'.format(
181 self.eCaption.text(), os.linesep, istring) 181 self.eCaption.text(), os.linesep, istring)
182 code += 'self.trUtf8("{0}"),{1}{2}'.format( 182 code += 'self.trUtf8("{0}"),{1}{2}'.format(
183 self.eLabel.text(), os.linesep, istring) 183 self.eLabel.text(), os.linesep, istring)
184 code += '{0},{1}{2}'.format(self.eVariable.text(), os.linesep, istring) 184 code += '{0},{1}{2}'.format(
185 self.eVariable.text(), os.linesep, istring)
185 code += '{0:d}, {1}){2}'.format( 186 code += '{0:d}, {1}){2}'.format(
186 self.sCurrentItem.value(), self.cEditable.isChecked(), estring) 187 self.sCurrentItem.value(), self.cEditable.isChecked(), estring)
187 188
188 return code 189 return code
189 190

eric ide

mercurial