From e69cc6e521c5fb13c148e0761f2257a619aeeb09 Mon Sep 17 00:00:00 2001 From: JRG 2 Date: Thu, 26 Dec 2013 14:16:31 +0000 Subject: Export icons --- (limited to 'TurtleArt/tacanvas.py') diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py index 753fd32..f37a3a4 100644 --- a/TurtleArt/tacanvas.py +++ b/TurtleArt/tacanvas.py @@ -128,14 +128,9 @@ class TurtleGraphics: else: svg_surface = cairo.SVGSurface( TMP_SVG_PATH, self.width, self.height) - self.svg_surface = svg_surface self.cr_svg = cairo.Context(svg_surface) self.cr_svg.set_line_cap(1) # Set the line cap to be round - def get_square_svg_path(self): - return os.path.join(get_path(self.turtle_window.activity, 'instance'), - 'output.svg') - def fill_polygon(self, poly_points): ''' Draw the polygon... ''' def _fill_polygon(cr, poly_points): @@ -421,8 +416,6 @@ class TurtleGraphics: def svg_close(self): ''' Close current SVG graphic ''' self.cr_svg.show_page() - self.svg_surface.flush() - self.svg_surface.finish() def svg_reset(self): ''' Reset svg flags ''' -- cgit v0.9.1