41 @param parent reference to the parent widget |
41 @param parent reference to the parent widget |
42 @type QWidget |
42 @type QWidget |
43 """ |
43 """ |
44 super(CondaExportDialog, self).__init__(parent) |
44 super(CondaExportDialog, self).__init__(parent) |
45 self.setupUi(self) |
45 self.setupUi(self) |
46 self.setWindowFlags(Qt.Window) |
46 self.setWindowFlags(Qt.WindowType.Window) |
47 |
47 |
48 self.__refreshButton = self.buttonBox.addButton( |
48 self.__refreshButton = self.buttonBox.addButton( |
49 self.tr("&Refresh"), QDialogButtonBox.ActionRole) |
49 self.tr("&Refresh"), QDialogButtonBox.ButtonRole.ActionRole) |
50 |
50 |
51 self.requirementsFilePicker.setMode(E5PathPickerModes.SaveFileMode) |
51 self.requirementsFilePicker.setMode(E5PathPickerModes.SaveFileMode) |
52 self.requirementsFilePicker.setFilters( |
52 self.requirementsFilePicker.setFilters( |
53 self.tr("Text Files (*.txt);;All Files (*)")) |
53 self.tr("Text Files (*.txt);;All Files (*)")) |
54 |
54 |
94 Private slot called by a button of the button box clicked. |
94 Private slot called by a button of the button box clicked. |
95 |
95 |
96 @param button button that was clicked |
96 @param button button that was clicked |
97 @type QAbstractButton |
97 @type QAbstractButton |
98 """ |
98 """ |
99 if button == self.buttonBox.button(QDialogButtonBox.Close): |
99 if button == self.buttonBox.button( |
|
100 QDialogButtonBox.StandardButton.Close |
|
101 ): |
100 self.close() |
102 self.close() |
101 elif button == self.__refreshButton: |
103 elif button == self.__refreshButton: |
102 self.__refresh() |
104 self.__refresh() |
103 |
105 |
104 def __refresh(self): |
106 def __refresh(self): |