Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
added dropdown menu button options for exporting csvs with all frames (ln 495-521)
  • Loading branch information
vtsai881 committed Dec 3, 2023
1 parent bedb879 commit 8635ec0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions sleap/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,15 +496,28 @@ def add_submenu_choices(menu, title, options, key):
add_menu_item(
export_csv_menu,
"export_csv_current",
"Current Video...",
"Current Video (only frames with tracking)...",
self.commands.exportCSVFile,
)
add_menu_item(
export_csv_menu,
"export_csv_all",
"All Videos...",
"All Videos (only frames with tracking)...",
lambda: self.commands.exportCSVFile(all_videos=True),
)

fileMenu.addSeparator()
add_menu_item(
export_csv_menu,
"export_csv_current",
"Current Video (all frames)...",
lambda: self.commands.exportCSVFile(all_frames=True),
)
add_menu_item(
export_csv_menu,
"export_csv_all",
"All Videos (all frames)...",
lambda: self.commands.exportCSVFile(all_frames=True, all_videos=True),

add_menu_item(fileMenu, "export_nwb", "Export NWB...", self.commands.exportNWB)

Expand Down

0 comments on commit 8635ec0

Please sign in to comment.