Exemplo n.º 1
0
    def applyChanges(self):
        """Read the content of line edits into configuration."""

        configuration.PATHS["TO_SCAN"][0] = str(self.toScanPath.text())
        configuration.PATHS["SORTED"] = str(self.sortedPath.text())

        configuration.saveConfigFile()
Exemplo n.º 2
0
 def applyChanges(self):
     """Read the content of line edits into configuration."""
     
     configuration.PATHS["TO_SCAN"][0] = str(self.toScanPath.text())
     configuration.PATHS["SORTED"] = str(self.sortedPath.text())
             
     configuration.saveConfigFile()
Exemplo n.º 3
0
 def applyChanges(self):
     """Read the content of dialog widgets into configuration then hide dialog."""
     
     # Actions
     configuration.ACTIONS["EXTRACT"] = self.optionsFrame.extractCheck.isChecked()
     configuration.ACTIONS["IMAGE"] = self.optionsFrame.imageCheck.isChecked()
     configuration.ACTIONS["CLEAN"] = self.optionsFrame.cleanCheck.isChecked()
     configuration.ACTIONS["CONVERT"] = self.optionsFrame.convertCheck.isChecked()
     configuration.ACTIONS["SPLIT"] = self.optionsFrame.splitCheck.isChecked()
     configuration.ACTIONS["METADATA"] = self.optionsFrame.audioCheck.isChecked()        
     
     # Settings
     configuration.SETTINGS["GET_PRINT"] = self.optionsFrame.getPrintCheck.isChecked()
     configuration.SETTINGS["DELETE"] = self.optionsFrame.deleteCheck.isChecked()
     
     configuration.saveConfigFile()
     
     self.hide()