MCPcopy Create free account
hub / github.com/DeepLabCut/DeepLabCut / add_recent_filename

Method add_recent_filename

deeplabcut/gui/window.py:173–180  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

171 self.settings.setValue("recent_files", recent_files)
172
173 def add_recent_filename(self, filename):
174 actions = self.recentfiles_menu.actions()
175 filenames = [action.text() for action in actions]
176 if filename in filenames:
177 return
178 action = QAction(filename, self)
179 before_action = actions[0] if actions else None
180 self.recentfiles_menu.insertAction(before_action, action)
181
182 @property
183 def cfg(self):

Callers 2

load_settingsMethod · 0.95
_update_project_stateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected