5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog to show the licenses of an environment. |
7 Module implementing a dialog to show the licenses of an environment. |
8 """ |
8 """ |
9 |
9 |
|
10 import csv |
10 import os |
11 import os |
11 import re |
12 import re |
12 |
13 |
13 from PyQt6.QtCore import Qt, pyqtSlot |
14 from PyQt6.QtCore import Qt, pyqtSlot |
14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem |
15 from PyQt6.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem |
177 @pyqtSlot() |
178 @pyqtSlot() |
178 def __saveAsCSV(self): |
179 def __saveAsCSV(self): |
179 """ |
180 """ |
180 Private slot to save the license information as a CSV file. |
181 Private slot to save the license information as a CSV file. |
181 """ |
182 """ |
182 import csv |
|
183 |
|
184 fileName, selectedFilter = EricFileDialog.getSaveFileNameAndFilter( |
183 fileName, selectedFilter = EricFileDialog.getSaveFileNameAndFilter( |
185 self, |
184 self, |
186 self.tr("Save as CSV"), |
185 self.tr("Save as CSV"), |
187 os.path.expanduser("~"), |
186 os.path.expanduser("~"), |
188 self.tr("CSV Files (*.csv);;All Files (*)"), |
187 self.tr("CSV Files (*.csv);;All Files (*)"), |