Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py

changeset 2094
88620e11c67c
parent 1509
c0b5e693b0eb
child 2297
e8a46f81517c
child 2303
0ed4ed026c16
equal deleted inserted replaced
2089:d23ab571d2b9 2094:88620e11c67c
78 self.eCaption.text(), 78 self.eCaption.text(),
79 self.eLabel.text(), 79 self.eLabel.text(),
80 echomode, 80 echomode,
81 self.eTextDefault.text()) 81 self.eTextDefault.text())
82 elif self.rInteger.isChecked(): 82 elif self.rInteger.isChecked():
83 QInputDialog.getInteger( 83 QInputDialog.getInt(
84 None, 84 None,
85 self.eCaption.text(), 85 self.eCaption.text(),
86 self.eLabel.text(), 86 self.eLabel.text(),
87 self.sIntDefault.value(), 87 self.sIntDefault.value(),
88 self.sIntFrom.value(), 88 self.sIntFrom.value(),
141 if self.eTextDefault.text(): 141 if self.eTextDefault.text():
142 code += ',{0}{1}self.trUtf8("{2}")'.format( 142 code += ',{0}{1}self.trUtf8("{2}")'.format(
143 os.linesep, istring, self.eTextDefault.text()) 143 os.linesep, istring, self.eTextDefault.text())
144 code += '){0}'.format(estring) 144 code += '){0}'.format(estring)
145 elif self.rInteger.isChecked(): 145 elif self.rInteger.isChecked():
146 code += 'getInteger({0}{1}'.format(os.linesep, istring) 146 code += 'getInt({0}{1}'.format(os.linesep, istring)
147 code += 'None,{0}{1}'.format(os.linesep, istring) 147 code += 'None,{0}{1}'.format(os.linesep, istring)
148 code += 'self.trUtf8("{0}"),{1}{2}'.format( 148 code += 'self.trUtf8("{0}"),{1}{2}'.format(
149 self.eCaption.text(), os.linesep, istring) 149 self.eCaption.text(), os.linesep, istring)
150 code += 'self.trUtf8("{0}"),{1}{2}'.format( 150 code += 'self.trUtf8("{0}"),{1}{2}'.format(
151 self.eLabel.text(), os.linesep, istring) 151 self.eLabel.text(), os.linesep, istring)

eric ide

mercurial