7 Module implementing a dialog to show the results of the PyLint run. |
7 Module implementing a dialog to show the results of the PyLint run. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt5.QtCore import pyqtSlot, Qt, QTimer, QProcess |
12 from PyQt5.QtCore import pyqtSlot, Qt, QTimer, QProcess |
13 from PyQt5.QtGui import QTextCursor |
13 from PyQt5.QtGui import QTextCursor |
14 from PyQt5.QtWidgets import ( |
14 from PyQt5.QtWidgets import ( |
15 QWidget, QHeaderView, QApplication, QDialogButtonBox, QTreeWidgetItem |
15 QWidget, QHeaderView, QApplication, QDialogButtonBox, QTreeWidgetItem |
16 ) |
16 ) |
17 |
17 |
392 @pyqtSlot() |
392 @pyqtSlot() |
393 def on_saveButton_clicked(self): |
393 def on_saveButton_clicked(self): |
394 """ |
394 """ |
395 Private slot to save the report to a file. |
395 Private slot to save the report to a file. |
396 """ |
396 """ |
397 if self.htmlOutput: |
397 fileFilter = ( |
398 fileFilter = self.tr("HTML Files (*.html);;All Files (*)") |
398 self.tr("HTML Files (*.html);;All Files (*)") |
399 else: |
399 if self.htmlOutput else |
400 fileFilter = self.tr("Text Files (*.txt);;All Files (*)") |
400 self.tr("Text Files (*.txt);;All Files (*)") |
|
401 ) |
401 |
402 |
402 self.reportFile = E5FileDialog.getSaveFileName( |
403 self.reportFile = E5FileDialog.getSaveFileName( |
403 self, |
404 self, |
404 self.tr("PyLint Report"), |
405 self.tr("PyLint Report"), |
405 self.ppath, |
406 self.ppath, |