def __init__(self):
     JsonDataStore.__init__(self)
     # Set the data type name for logging clarity (base class functions use this variable)
     self.data_type = "user settings"
     self.settings_filename = "openshot.settings"
     self.default_settings_filename = os.path.join(info.PATH, 'settings',
                                                   '_default.settings')
예제 #2
0
    def __init__(self):
        JsonDataStore.__init__(self)
        self.data_type = "project data"  # Used in error messages
        self.default_project_filepath = os.path.join(info.PATH, 'settings', '_default.project')

        # Set default filepath to user's home folder
        self.current_filepath = None

        # Load default project data on creation
        self.new()
예제 #3
0
    def __init__(self):
        JsonDataStore.__init__(self)
        self.data_type = "project data"  # Used in error messages
        self.default_project_filepath = os.path.join(info.PATH, 'settings', '_default.project')

        # Set default filepath to user's home folder
        self.current_filepath = None

        # Track changes after save
        self.has_unsaved_changes = False

        # Load default project data on creation
        self.new()
예제 #4
0
 def __init__(self):
     JsonDataStore.__init__(self)
     # Set the data type name for logging clarity (base class functions use this variable)
     self.data_type = "user settings"
     self.settings_filename = "openshot.settings"
     self.default_settings_filename = os.path.join(info.PATH, 'settings', '_default.settings')