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))
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()
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()
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))
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()
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()
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()
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))
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))