本文整理汇总了Python中Core.Dialogs.getExistingDirectory方法的典型用法代码示例。如果您正苦于以下问题:Python Dialogs.getExistingDirectory方法的具体用法?Python Dialogs.getExistingDirectory怎么用?Python Dialogs.getExistingDirectory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Core.Dialogs
的用法示例。
在下文中一共展示了Dialogs.getExistingDirectory方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: selectPath
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import getExistingDirectory [as 别名]
def selectPath(self):
try:
dirPath = Dialogs.getExistingDirectory(translate("FileTreeBuilder", "Please Select"), self.lePath.text(), 0)
if dirPath is not None:
self.lePath.setText(str(dirPath))
except:
ReportBug.ReportBug()
示例2: selectProjectPath
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import getExistingDirectory [as 别名]
def selectProjectPath(self):
try:
ProjectPath = Dialogs.getExistingDirectory(translate("Cleaner", "Please Select Directory"),
self.lePathOfProject.text(), 0)
if ProjectPath is not None:
self.lePathOfProject.setText(str(ProjectPath))
except:
ReportBug.ReportBug()
示例3: selectDestinationDir
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import getExistingDirectory [as 别名]
def selectDestinationDir(self):
try:
destinationDirPath = Dialogs.getExistingDirectory(
translate("AmarokCopyTable", "Please Select Destination Directory"), self.leDestinationDirPath.text(),
0)
if destinationDirPath is not None:
self.leDestinationDirPath.setText(str(destinationDirPath))
except:
ReportBug.ReportBug()
示例4: selectSearchDirectoryPath
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import getExistingDirectory [as 别名]
def selectSearchDirectoryPath(self):
try:
lastPath = uni.getListFromListString(self.lePathToSeach.text(), ";")[-1]
SearchPath = Dialogs.getExistingDirectory(translate("Searcher", "Please Select Directory To Search"),
lastPath)
if SearchPath is not None:
self.lePathToSeach.setText(str(SearchPath))
if self.setSourceToSearch(True, True):
self.search()
except:
ReportBug.ReportBug()
示例5: selectInstallationDirectory
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import getExistingDirectory [as 别名]
def selectInstallationDirectory(self):
insDir = Dialogs.getExistingDirectory(translate("Install", "Please select a folder for installation."),
self.leInstallationDirectory.text())
if insDir is not None:
self.leInstallationDirectory.setText(str(insDir))
示例6: selectUninstallationDirectory
# 需要导入模块: from Core import Dialogs [as 别名]
# 或者: from Core.Dialogs import getExistingDirectory [as 别名]
def selectUninstallationDirectory(self):
insDir = Dialogs.getExistingDirectory(
translate("Uninstall", "Please Select Directory Of Hamsi Manager To Uninstall."),
self.leUninstallationDirectory.text())
if insDir is not None:
self.leUninstallationDirectory.setText(str(insDir))