Ejemplo n.º 1
0
 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))
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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()
Ejemplo n.º 4
0
 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))
Ejemplo n.º 5
0
 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()
Ejemplo n.º 6
0
 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()
Ejemplo n.º 7
0
 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()
 
 
             
Ejemplo n.º 8
0
 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()
Ejemplo n.º 9
0
 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()
Ejemplo n.º 10
0
 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))
Ejemplo n.º 11
0
 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))