PyInstaller/PyInstallerCleanupDialog.py

changeset 4
52f0572b5908
parent 3
eb2d30b4d34e
child 25
3d7e12729e7c
equal deleted inserted replaced
3:eb2d30b4d34e 4:52f0572b5908
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to select the cleanup action. 7 Module implementing a dialog to select the cleanup action.
8 """ 8 """
9
10 from __future__ import unicode_literals
9 11
10 from PyQt5.QtWidgets import QDialog 12 from PyQt5.QtWidgets import QDialog
11 13
12 from .Ui_PyInstallerCleanupDialog import Ui_PyInstallerCleanupDialog 14 from .Ui_PyInstallerCleanupDialog import Ui_PyInstallerCleanupDialog
13 15
33 self.resize(max(self.width(), msh.width()), msh.height()) 35 self.resize(max(self.width(), msh.width()), msh.height())
34 36
35 def getDirectories(self): 37 def getDirectories(self):
36 """ 38 """
37 Public method to get the project relative directories to be cleaned. 39 Public method to get the project relative directories to be cleaned.
40
41 @return list of directories to be removed
42 @rtype list of str
38 """ 43 """
39 dirs = [] 44 dirs = []
40 45
41 if self.buildButton.isChecked() or self.bothButton.isChecked(): 46 if self.buildButton.isChecked() or self.bothButton.isChecked():
42 dirs.append(PyInstallerCleanupDialog.BuildPath) 47 dirs.append(PyInstallerCleanupDialog.BuildPath)

eric ide

mercurial