src/eric7/PipInterface/PipFileSelectionDialog.py

branch
eric7
changeset 10620
699b5ceb39aa
parent 10439
21c28b0f9e41
child 10690
fab36645aa7d
--- a/src/eric7/PipInterface/PipFileSelectionDialog.py	Sun Mar 03 16:31:14 2024 +0100
+++ b/src/eric7/PipInterface/PipFileSelectionDialog.py	Mon Mar 04 11:26:52 2024 +0100
@@ -50,6 +50,16 @@
                 )
             )
             self.filePicker.setFilters(self.tr("Text Files (*.txt);;All Files (*)"))
+        elif mode == "pyproject":
+            self.fileLabel.setText(self.tr("Enter 'pyproject.toml' file:"))
+            self.filePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE)
+            self.filePicker.setToolTip(
+                self.tr(
+                    "Press to select the 'pyproject.toml' file through a file"
+                    " selection dialog."
+                )
+            )
+            self.filePicker.setFilters(self.tr("TOML Files (*.toml);;All Files (*)"))
         elif mode == "package":
             self.fileLabel.setText(self.tr("Enter package file:"))
             self.filePicker.setMode(EricPathPickerModes.OPEN_FILE_MODE)

eric ide

mercurial