src/eric7/PipInterface/PipFileSelectionDialog.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
11 import os 11 import os
12 12
13 from PyQt6.QtCore import pyqtSlot 13 from PyQt6.QtCore import pyqtSlot
14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 14 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
15 15
16 from eric7 import Utilities
17 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes 16 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
17 from eric7.SystemUtilities import FileSystemUtilities
18 18
19 from .Ui_PipFileSelectionDialog import Ui_PipFileSelectionDialog 19 from .Ui_PipFileSelectionDialog import Ui_PipFileSelectionDialog
20 20
21 21
22 class PipFileSelectionDialog(QDialog, Ui_PipFileSelectionDialog): 22 class PipFileSelectionDialog(QDialog, Ui_PipFileSelectionDialog):
89 89
90 @param txt name of the file 90 @param txt name of the file
91 @type str 91 @type str
92 """ 92 """
93 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( 93 self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
94 bool(txt) and os.path.exists(Utilities.toNativeSeparators(txt)) 94 bool(txt) and os.path.exists(FileSystemUtilities.toNativeSeparators(txt))
95 ) 95 )
96 96
97 def getData(self): 97 def getData(self):
98 """ 98 """
99 Public method to get the entered data. 99 Public method to get the entered data.

eric ide

mercurial