src/eric7/PipInterface/PipLicensesDialog.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9549
67295777d9fe
child 9653
e67609152c5e
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
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 (*)"),

eric ide

mercurial