def export_many_func(app): if app.tracked_replays.size() > 0: d = Popups.ExportPopup(winfo_rootc=(app.winfo_rootx(),app.winfo_rooty()),listitems=app.tracked_replays.variables) app.wait_window(d) if hasattr(d,"selection"): data = RLExport.convertreplays2json(d.selection) RLExport.dump_to_zip(data) tkMessageBox.showinfo(title="Export",message="Export complete!")
def export_single_func(app): if app.tracked_replays.has_selected_item(): data = RLExport.convert2json(app.tracked_replays.get_selected_item()) RLExport.dump_to_zip([data]) tkMessageBox.showinfo(title="Export",message="Export complete!")