Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py

changeset 96
9624a110667d
parent 13
1af94a91f439
child 425
ca5e65413fc5
child 792
a13346916170
equal deleted inserted replaced
95:261bc03812fd 96:9624a110667d
86 86
87 @param indLevel indentation level (int) 87 @param indLevel indentation level (int)
88 @param indString string used for indentation (space or tab) (string) 88 @param indString string used for indentation (space or tab) (string)
89 @return generated code (string) 89 @return generated code (string)
90 """ 90 """
91 # calculate our indentation level and the indentation string 91 # generate the code
92 il = indLevel + 1
93 istring = il * indString
94
95 # now generate the code
96 code = 'QFontDialog.getFont(' 92 code = 'QFontDialog.getFont('
97 if not self.eVariable.text(): 93 if not self.eVariable.text():
98 if self.font is not None: 94 if self.font is not None:
99 code += 'QFont("%s", %d, %d, %d)' % \ 95 code += 'QFont("%s", %d, %d, %d)' % \
100 (self.font.family(), self.font.pointSize(), 96 (self.font.family(), self.font.pointSize(),

eric ide

mercurial