eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py

branch
maintenance
changeset 8273
698ae46f40a4
parent 8176
31965986ecd1
parent 8220
006ee31b4835
equal deleted inserted replaced
8190:fb0ef164f536 8273:698ae46f40a4
37 """ 37 """
38 Constructor 38 Constructor
39 39
40 @param parent The parent widget. (QWidget) 40 @param parent The parent widget. (QWidget)
41 """ 41 """
42 super(SyntaxCheckerDialog, self).__init__(parent) 42 super().__init__(parent)
43 self.setupUi(self) 43 self.setupUi(self)
44 self.setWindowFlags(Qt.WindowType.Window) 44 self.setWindowFlags(Qt.WindowType.Window)
45 45
46 self.showButton = self.buttonBox.addButton( 46 self.showButton = self.buttonBox.addButton(
47 self.tr("Show"), QDialogButtonBox.ButtonRole.ActionRole) 47 self.tr("Show"), QDialogButtonBox.ButtonRole.ActionRole)
279 The results are reported to the __processResult slot. 279 The results are reported to the __processResult slot.
280 """ 280 """
281 self.__lastFileItem = None 281 self.__lastFileItem = None
282 282
283 self.checkProgressLabel.setPath(self.tr("Preparing files...")) 283 self.checkProgressLabel.setPath(self.tr("Preparing files..."))
284 progress = 0
285 284
286 argumentsList = [] 285 argumentsList = []
287 for filename in self.files: 286 for progress, filename in enumerate(self.files, start=1):
288 progress += 1
289 self.checkProgress.setValue(progress) 287 self.checkProgress.setValue(progress)
290 QApplication.processEvents() 288 QApplication.processEvents()
291 289
292 try: 290 try:
293 source = Utilities.readEncodedFile(filename)[0] 291 source = Utilities.readEncodedFile(filename)[0]

eric ide

mercurial