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-10 11:26:22 (GMT)
committer pmoxhay <pmoxhay@earthlink.net>2009-04-10 11:26:22 (GMT)
commit5d16d925a35b2da6a2abfdce299d96ed594a240d (patch)
treebd2ab833f50efaffe940417cf95604a44e37e141
parenta42fc0d4d5d9b80f39bdb7a4bbafe1226ac39d8e (diff)
DropTargets now hilite correctly.
-rw-r--r--compare3lesson.py2
-rw-r--r--draggableobject.py4
-rw-r--r--movableobject.py4
3 files changed, 9 insertions, 1 deletions
diff --git a/compare3lesson.py b/compare3lesson.py
index 2d1bbfa..1e85cd5 100644
--- a/compare3lesson.py
+++ b/compare3lesson.py
@@ -245,7 +245,7 @@ class Compare3Lesson(ObjectArea):
self.symboldrop.answer = self.problem.find_answer()
- self.select_object(self.drop_origin.ltsymbol)
+ #self.select_object(self.drop_origin.ltsymbol)
self.adjust_tab_order()
def finish_problem_stage3(self):
diff --git a/draggableobject.py b/draggableobject.py
index 7ccf12d..360e30b 100644
--- a/draggableobject.py
+++ b/draggableobject.py
@@ -79,8 +79,12 @@ class DraggableObject(Object):
i += 1
if o.contains(self.get_bounds()) and not o.full:
o.hilite = True
+ #print "DraggableObject: DropTarget's hilite set to True, queue draw"
+ o.queue_draw()
else:
o.hilite = False
+ #print "DraggableObject: DropTarget's hilite set to False, queue draw"
+ o.queue_draw()
# End the drag.
elif event.type == gtk.gdk.BUTTON_RELEASE:
diff --git a/movableobject.py b/movableobject.py
index 50ff0f5..e382901 100644
--- a/movableobject.py
+++ b/movableobject.py
@@ -126,8 +126,12 @@ class MovableObject(Object):
for o in self.drop_targets:
if o.contains(self.get_bounds()) and not o.full:
o.hilite = True
+ #print "MoveableObject: DropTarget's hilite set to True, queue draw"
+ o.queue_draw()
else:
o.hilite = False
+ #print "MoveableObject: DropTarget's hilite set to False, queue draw"
+ o.queue_draw()
elif event.type == gtk.gdk.BUTTON_RELEASE:
#print "movable object: BUTTON_RELEASE"