def save_as(self): self.random_device() return ret=save_as_filter(self,"3d (*.3d)") #print(ret) if ret!=False: gl_save_save(ret)
def save_image_as(self): #self.random_device() #return ret=save_as_filter(self,"png (*.png);;3D object file (*.gobj)") if ret!=False: if ret.endswith("png"): self.grabFrameBuffer().save(ret)
def callback_save(self, widget, data=None): file_name=save_as_filter(self,"avi (*.avi)") if file_name!=None: self.save_image(file_name)
def callback_save(self): file_name = save_as_filter(self, "png (*.png)") if file_name != None: self.save_image(file_name)
def save_image(self): response=save_as_filter(self,"png (*.png);;jpg (*.jpg)") if response != None: print(response) self.my_figure.savefig(response)
def callback_save_gnuplot(self): file_name = save_as_filter(self, "gnuplot (*.)") if file_name != None: #dat_files_to_gnuplot(file_name,self.data) dat_files_to_gnuplot_files(file_name, self.data)
def callback_save_txt(self): file_name = save_as_filter(self, "*.txt") if file_name != None: self.data[0].save_as_txt(file_name)
def callback_save_csv(self): file_name = save_as_filter(self, "*.csv") if file_name != None: dat_files_to_csv(file_name, self.data)