Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/balanceobject.py
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2009-04-05 18:04:53 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2009-04-05 18:04:53 (GMT)
commita7bdd950b0d422b9d7e176aa10740884fa71fbff (patch)
treeac15cb7d34e3f047bd4bd15f99a8011f776dbf5e /balanceobject.py
parent2c1f91f3117407543e3f78cdb8b9bef73a93a09a (diff)
Implemented partial refresh. When objects move, they only redraw the areas of the screen that they cover.
Still needs lots of work fixing all the get_bounds methods, and implementing those that are missing. Also removed some unused functions from Object.
Diffstat (limited to 'balanceobject.py')
-rw-r--r--balanceobject.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/balanceobject.py b/balanceobject.py
index 5b24ee5..1eb975e 100644
--- a/balanceobject.py
+++ b/balanceobject.py
@@ -114,6 +114,8 @@ class BalanceObject(MovableObject):
#print "BalanceObject: move called: self.container = ", self.container
#print "BalanceObject: move called: pos = ", pos
+ self.container.queue_draw()
+
# Tentatively place in the object in the new position
last_pos = self.pos
self.pos = pos
@@ -122,11 +124,9 @@ class BalanceObject(MovableObject):
#if not self.is_in_container():
# self.pos = last_pos
#
- if self.container:
- self.container.queue_draw()
+ self.container.queue_draw()
- def get_bounds(self):
- pass
+ #def get_bounds(self):
#if self.shape1_in_pair:
# return self.pos, self.pos + Vector(200, 200)
#else:
@@ -209,4 +209,4 @@ class BalanceObject(MovableObject):
cr.restore()
- \ No newline at end of file
+