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(), |