diff options
author | Wade Brainerd <wadetb@gmail.com> | 2009-04-06 11:23:08 (GMT) |
---|---|---|
committer | Wade Brainerd <wadetb@gmail.com> | 2009-04-06 11:23:08 (GMT) |
commit | 06a8fac4cb75a5d047a6002045a73b19c8e755e0 (patch) | |
tree | 4a855575ca35332c4e34a0a25d3ea5d49881b795 /groupobject.py | |
parent | aba7e1f7a4964132bd27c53cbd84ffd28d10245b (diff) |
Tidy up grid code a bit.
Diffstat (limited to 'groupobject.py')
-rw-r--r-- | groupobject.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/groupobject.py b/groupobject.py index c9c8eb9..4f4c31e 100644 --- a/groupobject.py +++ b/groupobject.py @@ -86,21 +86,6 @@ class GroupObject(MovableObject): else: self.draw_triangle(cr, Vector(9 + 25 + 100, 83), self.color1) - def is_in_container(self): - bounds_inner, bounds_outer = self.get_bounds() - - GRID_SIZE = 25 - - DRAGGING_RECT_WIDTH = 48*GRID_SIZE - DRAGGING_RECT_HEIGHT = 32*GRID_SIZE - - if bounds_inner.x < -2 or bounds_outer.x > DRAGGING_RECT_WIDTH + 2 \ - or bounds_inner.y < -1 or bounds_outer.y > DRAGGING_RECT_HEIGHT: - #print "GroupObject: is_in_container returning False" - return False - #print "GroupObject: is_in_container returning True" - return True - def move(self, pos): #print "GroupObject: move called: self.container = ", self.container self.queue_draw() |