Plugins/WizardPlugins/InputDialogWizard/InputDialogWizardDialog.py

changeset 3119
8b19074bb239
parent 2893
150de635fa29
child 3124
a01e410893ac
equal deleted inserted replaced
3118:b1278ba1d7fe 3119:8b19074bb239
108 doubleDefault, 108 doubleDefault,
109 doubleFrom, 109 doubleFrom,
110 doubleTo, 110 doubleTo,
111 self.sDoubleDecimals.value()) 111 self.sDoubleDecimals.value())
112 112
113 def __getCode4(self, indLevel, indString): 113 def getCode(self, indLevel, indString):
114 """ 114 """
115 Private method to get the source code for Qt4/Qt5. 115 Private method to get the source code for Qt4/Qt5.
116 116
117 @param indLevel indentation level (int) 117 @param indLevel indentation level (int)
118 @param indString string used for indentation (space or tab) (string) 118 @param indString string used for indentation (space or tab) (string)
185 self.eVariable.text(), os.linesep, istring) 185 self.eVariable.text(), os.linesep, istring)
186 code += '{0:d}, {1}){2}'.format( 186 code += '{0:d}, {1}){2}'.format(
187 self.sCurrentItem.value(), self.cEditable.isChecked(), estring) 187 self.sCurrentItem.value(), self.cEditable.isChecked(), estring)
188 188
189 return code 189 return code
190
191 def getCode(self, indLevel, indString):
192 """
193 Public method to get the source code.
194
195 @param indLevel indentation level (int)
196 @param indString string used for indentation (space or tab) (string)
197 @return generated code (string)
198 """
199 return self.__getCode4(indLevel, indString)

eric ide

mercurial