Exemplo n.º 1
0
 def __check_and_update_root_path(self):
     """Attempt to update in the conf file, returns False if the path is invalid"""
     if not os.path.isdir(self.root_dir_edit.text()):
         self.root_dir_edit.clear()
         self.root_dir_edit.setPlaceholderText("Invalid Path")
         return False
     filemgt.edit_config('system', 'path', self.root_dir_edit.text(), filemgt.config_file)
     return True
Exemplo n.º 2
0
 def update_color(self):
     """
     Writes the colors out to the conf file
     """
     filemgt.edit_config("gui", self._setting_name, self.color(), filemgt.config_file)