35 @param install flag indicating an install action |
35 @param install flag indicating an install action |
36 @type bool |
36 @type bool |
37 @param parent reference to the parent widget |
37 @param parent reference to the parent widget |
38 @type QWidget |
38 @type QWidget |
39 """ |
39 """ |
40 super(PipFileSelectionDialog, self).__init__(parent) |
40 super().__init__(parent) |
41 self.setupUi(self) |
41 self.setupUi(self) |
42 |
42 |
43 if mode == "requirements": |
43 if mode == "requirements": |
44 self.fileLabel.setText(self.tr("Enter requirements file:")) |
44 self.fileLabel.setText(self.tr("Enter requirements file:")) |
45 self.filePicker.setMode(E5PathPickerModes.OpenFileMode) |
45 self.filePicker.setMode(E5PathPickerModes.OpenFileMode) |