diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-06-20 22:12:14 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-06-20 22:12:14 (GMT) |
commit | 0a4db4aa9d53e17b60c42f1ee3b6a238ed741a83 (patch) | |
tree | 2ec84f646aa33af20c9f98b98d2ea2765fda4912 /p5.py | |
parent | b2dc1cbdffc307e723ac09ca54e8d5811cc8c87f (diff) |
ui overhaul continues
git-svn-id: http://mediamods.com/public-svn/camera-activity/Camera.activity@102 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'p5.py')
-rwxr-xr-x | p5.py | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -4,10 +4,6 @@ import gobject import cairo import math -from datetime import datetime -from polygon import Polygon - - class P5(gtk.DrawingArea): def __init__(self): super(P5, self).__init__() @@ -29,7 +25,6 @@ class P5(gtk.DrawingArea): self._w = -1 self._h = -1 - self._backPoly = Polygon( [0,0,0,0], [0,0,0,0] ) #ok, this calls an initial painting & setting of painterly variables #e.g. time for the clock widget @@ -122,16 +117,16 @@ class P5(gtk.DrawingArea): def drawShape( self, ctx, poly, col ): self.setColor( ctx, col ) - for i in range ( 0, len(poly._xs) ): + for i in range ( 0, len(poly._xs) ): ctx.line_to ( poly._xs[i], poly._ys[i] ) ctx.close_path() - ctx.set_line_width(1) + ctx.set_line_width(1) ctx.stroke() def fillShape( self, ctx, poly, col ): self.setColor( ctx, col ) - for i in range ( 0, len(poly._xs) ): + for i in range ( 0, len(poly._xs) ): ctx.line_to (poly._xs[i], poly._ys[i]) ctx.close_path() |