PyInstallerInterface/PyInstallerCleanupDialog.py

branch
eric7
changeset 46
ccd14067e6a2
parent 43
01ce3d6f7a07
child 53
415055c7aa74
equal deleted inserted replaced
45:2d3b599c85b1 46:ccd14067e6a2
14 14
15 class PyInstallerCleanupDialog(QDialog, Ui_PyInstallerCleanupDialog): 15 class PyInstallerCleanupDialog(QDialog, Ui_PyInstallerCleanupDialog):
16 """ 16 """
17 Class implementing a dialog to select the cleanup action. 17 Class implementing a dialog to select the cleanup action.
18 """ 18 """
19
19 BuildPath = "build" 20 BuildPath = "build"
20 DistPath = "dist" 21 DistPath = "dist"
21 22
22 def __init__(self, parent=None): 23 def __init__(self, parent=None):
23 """ 24 """
24 Constructor 25 Constructor
25 26
26 @param parent reference to the parent widget 27 @param parent reference to the parent widget
27 @type QWidget 28 @type QWidget
28 """ 29 """
29 super().__init__(parent) 30 super().__init__(parent)
30 self.setupUi(self) 31 self.setupUi(self)
31 32
32 msh = self.minimumSizeHint() 33 msh = self.minimumSizeHint()
33 self.resize(max(self.width(), msh.width()), msh.height()) 34 self.resize(max(self.width(), msh.width()), msh.height())
34 35
35 def getDirectories(self): 36 def getDirectories(self):
36 """ 37 """
37 Public method to get the project relative directories to be cleaned. 38 Public method to get the project relative directories to be cleaned.
38 39
39 @return list of directories to be removed 40 @return list of directories to be removed
40 @rtype list of str 41 @rtype list of str
41 """ 42 """
42 dirs = [] 43 dirs = []
43 44
44 if self.buildButton.isChecked() or self.bothButton.isChecked(): 45 if self.buildButton.isChecked() or self.bothButton.isChecked():
45 dirs.append(PyInstallerCleanupDialog.BuildPath) 46 dirs.append(PyInstallerCleanupDialog.BuildPath)
46 if self.distButton.isChecked() or self.bothButton.isChecked(): 47 if self.distButton.isChecked() or self.bothButton.isChecked():
47 dirs.append(PyInstallerCleanupDialog.DistPath) 48 dirs.append(PyInstallerCleanupDialog.DistPath)
48 49
49 return dirs 50 return dirs

eric ide

mercurial