Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/p5.py
diff options
context:
space:
mode:
authorerikb <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)
commit0a4db4aa9d53e17b60c42f1ee3b6a238ed741a83 (patch)
tree2ec84f646aa33af20c9f98b98d2ea2765fda4912 /p5.py
parentb2dc1cbdffc307e723ac09ca54e8d5811cc8c87f (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-xp5.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/p5.py b/p5.py
index b85abd9..06ce6d6 100755
--- a/p5.py
+++ b/p5.py
@@ -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()