eric7/Plugins/WizardPlugins/ColorDialogWizard/ColorDialogWizardDialog.py

branch
eric7
changeset 8415
c6236bed1b50
parent 8358
144a6b854f70
child 8881
54e42bc2437a
equal deleted inserted replaced
8414:8c3b52d1b4b6 8415:c6236bed1b50
157 istring, self.eTitle.text(), os.linesep) 157 istring, self.eTitle.text(), os.linesep)
158 code += ( 158 code += (
159 '{0}QColorDialog.ColorDialogOption.ShowAlphaChannel' 159 '{0}QColorDialog.ColorDialogOption.ShowAlphaChannel'
160 .format(istring) 160 .format(istring)
161 ) 161 )
162 code += '){0}'.format(estring) 162 code += '{0}){0}'.format(estring)
163 elif self.rRGBA.isChecked(): 163 elif self.rRGBA.isChecked():
164 code += 'getColor({0}'.format(os.linesep) 164 code += 'getColor({0}'.format(os.linesep)
165 if not self.eRGB.text(): 165 if not self.eRGB.text():
166 code += '{0}QColor({1:d}, {2:d}, {3:d}, {4:d}),{5}'.format( 166 code += '{0}QColor({1:d}, {2:d}, {3:d}, {4:d}),{5}'.format(
167 istring, self.sRed.value(), self.sGreen.value(), 167 istring, self.sRed.value(), self.sGreen.value(),
174 istring, self.eTitle.text(), os.linesep) 174 istring, self.eTitle.text(), os.linesep)
175 code += ( 175 code += (
176 '{0}QColorDialog.ColorDialogOption.ShowAlphaChannel' 176 '{0}QColorDialog.ColorDialogOption.ShowAlphaChannel'
177 .format(istring) 177 .format(istring)
178 ) 178 )
179 code += '){0}'.format(estring) 179 code += '{0}){0}'.format(estring)
180 180
181 return code 181 return code

eric ide

mercurial