def on_save_pressed(self, widget): f = uiutils.select_file() if f is not None: self.save_all(f, preset="printer_us_letter")
def on_save_clicked(self, changed): dest = uiutils.select_file() if dest is not None: self.figure.patch.set_visible(False) self.figure.savefig(dest) self.figure.patch.set_visible(True)