diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-04-05 18:04:53 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-04-05 18:04:53 (GMT) |
commit | a7bdd950b0d422b9d7e176aa10740884fa71fbff (patch) | |
tree | ac15cb7d34e3f047bd4bd15f99a8011f776dbf5e /balanceobject.py | |
parent | 2c1f91f3117407543e3f78cdb8b9bef73a93a09a (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.py | 10 |
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 + |