Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpmoxhay <pmoxhay@earthlink.net>2009-04-07 23:47:36 (GMT)
committer pmoxhay <pmoxhay@earthlink.net>2009-04-07 23:47:36 (GMT)
commita42fc0d4d5d9b80f39bdb7a4bbafe1226ac39d8e (patch)
tree85e171c1e51a52bcfb19b6f9cfb87d37bd18d0c4
parentc372ad6e78cae30d4149c6e7db3689d8b837a187 (diff)
Small fixes to make borders of drop targets draw fully.
-rw-r--r--TODO1
-rw-r--r--linesegmentdroptarget.py4
-rw-r--r--movableobject.py2
-rw-r--r--signsdroptarget.py2
4 files changed, 5 insertions, 4 deletions
diff --git a/TODO b/TODO
index 8cf16cb..4b366c8 100644
--- a/TODO
+++ b/TODO
@@ -8,6 +8,7 @@ General
+ Add sound effects.
+ Improve images of faucet, balance, scissors
+ Animate pouring of water, cutting by scissors, maybe motion of balance.
++ Tools (scissors, balance, faucet) selectable from a menu.
Compare3 Lesson
+ Control movement from one problem type to another.
diff --git a/linesegmentdroptarget.py b/linesegmentdroptarget.py
index 228744f..ac3a66d 100644
--- a/linesegmentdroptarget.py
+++ b/linesegmentdroptarget.py
@@ -63,8 +63,8 @@ class LineSegmentDropTarget(DropTargetObject):
return i
def get_bounds(self):
- return self.pos, self.pos + self.size
-
+ return self.pos - Vector (2, 2), self.pos + self.size
+
def contains(self, other_bounds):
self_bounds_mn, self_bounds_mx = self.get_bounds()
other_bounds_mn, other_bounds_mx = other_bounds
diff --git a/movableobject.py b/movableobject.py
index 2dfa741..50ff0f5 100644
--- a/movableobject.py
+++ b/movableobject.py
@@ -128,7 +128,7 @@ class MovableObject(Object):
o.hilite = True
else:
o.hilite = False
-
+
elif event.type == gtk.gdk.BUTTON_RELEASE:
#print "movable object: BUTTON_RELEASE"
if self.container:
diff --git a/signsdroptarget.py b/signsdroptarget.py
index 3ae9ea8..9909fa4 100644
--- a/signsdroptarget.py
+++ b/signsdroptarget.py
@@ -54,7 +54,7 @@ class SignsDropTarget(DropTargetObject):
cr.stroke()
def get_bounds(self):
- return self.pos, self.pos + self.size
+ return self.pos - Vector (2, 2), self.pos + self.size
def contains(self, other_bounds):
self_bounds_mn, self_bounds_mx = self.get_bounds()