def save_image(self): file_name = save_as_jpg(self) if file_name !=None: self.fig.savefig(file_name)
def callback_save(self, widget, data=None): file_name = save_as_jpg(self) if file_name !=None: self.save_image(file_name)