当前位置: 首页>>代码示例>>Python>>正文


Python Dialogs.getExistingDirectory方法代码示例

本文整理汇总了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()
开发者ID:supermurat,项目名称:hamsi-manager,代码行数:9,代码来源:FileTreeBuilder.py

示例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()
开发者ID:supermurat,项目名称:hamsi-manager,代码行数:10,代码来源:Cleaner.py

示例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()
开发者ID:supermurat,项目名称:hamsi-manager,代码行数:11,代码来源:AmarokCopyTable.py

示例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()
开发者ID:supermurat,项目名称:hamsi-manager,代码行数:13,代码来源:Searcher.py

示例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))
开发者ID:supermurat,项目名称:hamsi-manager,代码行数:7,代码来源:install.py

示例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))
开发者ID:supermurat,项目名称:hamsi-manager,代码行数:8,代码来源:uninstall.py


注:本文中的Core.Dialogs.getExistingDirectory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。