220 def check(self, codestring=''): |
220 def check(self, codestring=''): |
221 """ |
221 """ |
222 Public method to start a check for one file. |
222 Public method to start a check for one file. |
223 |
223 |
224 The results are reported to the __processResult slot. |
224 The results are reported to the __processResult slot. |
225 @keyparam codestring optional sourcestring (str) |
225 |
|
226 @param codestring optional sourcestring (str) |
226 """ |
227 """ |
227 if self.syntaxCheckService is None or not self.files: |
228 if self.syntaxCheckService is None or not self.files: |
228 self.checkProgressLabel.setPath("") |
229 self.checkProgressLabel.setPath("") |
229 self.checkProgress.setMaximum(1) |
230 self.checkProgress.setMaximum(1) |
230 self.checkProgress.setValue(1) |
231 self.checkProgress.setValue(1) |