Mercurial > boomslang
comparison tools/rect_drawer.py @ 179:39f75faf16cb
Add trailing , for copy-n-paste
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Wed, 25 Aug 2010 15:07:44 +0200 |
parents | a2d041e0ab83 |
children | f98bc17f5e67 |
comparison
equal
deleted
inserted
replaced
178:ebb859fd7ab9 | 179:39f75faf16cb |
---|---|
97 def print_rects(self): | 97 def print_rects(self): |
98 d = self._make_dict() | 98 d = self._make_dict() |
99 for (num, col) in enumerate(d): | 99 for (num, col) in enumerate(d): |
100 print 'Rect %d : ' % num | 100 print 'Rect %d : ' % num |
101 for r in d[col]: | 101 for r in d[col]: |
102 print ' (%d, %d, %d, %d)' % (r.x, r.y, r.w, r.h) | 102 print ' (%d, %d, %d, %d),' % (r.x, r.y, r.w, r.h) |
103 print | 103 print |
104 | 104 |
105 def mouse_down(self, e): | 105 def mouse_down(self, e): |
106 if self.mode == 'del': | 106 if self.mode == 'del': |
107 pos = e.pos | 107 pos = e.pos |