Added background to diagram
authorEugene Gagarin <mosfet07@ya.ru>
Thu, 30 Apr 2009 11:20:44 +0000 (15:20 +0400)
committerEugene Gagarin <mosfet07@ya.ru>
Thu, 30 Apr 2009 11:20:44 +0000 (15:20 +0400)
src/files/outdiagram.py

index ed4cd1d..ff42aec 100755 (executable)
@@ -48,6 +48,13 @@ class Gtk_Presentation(object):
         R = min(w-w/3, h)/2 - 10
 
         cr = widget.window.cairo_create()   # cairo context
+        cr.rectangle(0, 0, w, h)
+        cr.set_source_rgb(1, 1, 1)
+        cr.fill()
+        cr.set_source_rgb(0, 0, 0)
+        cr.rectangle(0, 0, w, h)
+        cr.stroke()
+
         cr.translate(w/2-w/6, h/2)          # moving coordinates
 
         # drawing pie chart