def to_file(self, filename): err = Error() if gtlib.gt_graphics_save_to_file(self.g, filename, err._as_parameter_) < 0: gterror(err)
def to_file(self, filename): err = Error() if gtlib.gt_graphics_save_to_file(self.g, str(filename).encode("utf-8"), err) < 0: gterror(err)
def to_file(self, filename): err = Error() if gtlib.gt_graphics_save_to_file(self.g, filename, err) < 0: gterror(err)