62 |
63 |
63 def on_buttonBox_clicked(self, button): |
64 def on_buttonBox_clicked(self, button): |
64 """ |
65 """ |
65 Private slot called by a button of the button box clicked. |
66 Private slot called by a button of the button box clicked. |
66 |
67 |
67 @param button button that was clicked (QAbstractButton) |
68 @param button button that was clicked |
|
69 @type QAbstractButton |
68 """ |
70 """ |
69 if button == self.bTest: |
71 if button == self.bTest: |
70 self.on_bTest_clicked() |
72 self.on_bTest_clicked() |
71 |
73 |
72 @pyqtSlot() |
74 @pyqtSlot() |
93 |
95 |
94 def on_eVariable_textChanged(self, text): |
96 def on_eVariable_textChanged(self, text): |
95 """ |
97 """ |
96 Private slot to handle the textChanged signal of eVariable. |
98 Private slot to handle the textChanged signal of eVariable. |
97 |
99 |
98 @param text the new text (string) |
100 @param text the new text |
|
101 @type str |
99 """ |
102 """ |
100 if not text: |
103 if not text: |
101 self.bTest.setEnabled(True) |
104 self.bTest.setEnabled(True) |
102 else: |
105 else: |
103 self.bTest.setEnabled(False) |
106 self.bTest.setEnabled(False) |
130 |
133 |
131 def getCode(self, indLevel, indString): |
134 def getCode(self, indLevel, indString): |
132 """ |
135 """ |
133 Public method to get the source code. |
136 Public method to get the source code. |
134 |
137 |
135 @param indLevel indentation level (int) |
138 @param indLevel indentation level |
136 @param indString string used for indentation (space or tab) (string) |
139 @type int |
137 @return generated code (string) |
140 @param indString string used for indentation (space or tab) |
|
141 @type str |
|
142 @return generated code |
|
143 @rtype str |
138 """ |
144 """ |
139 # calculate our indentation level and the indentation string |
145 # calculate our indentation level and the indentation string |
140 il = indLevel + 1 |
146 il = indLevel + 1 |
141 istring = il * indString |
147 istring = il * indString |
142 estring = os.linesep + indLevel * indString |
148 estring = os.linesep + indLevel * indString |