Changeset 1540
- Timestamp:
- 07/01/07 03:16:41 (1 year ago)
- Files:
-
- gaphas/trunk/gaphas/item.py (modified) (2 diffs)
- gaphas/trunk/gaphas/tests/test_element.py (modified) (2 diffs)
- gaphas/trunk/gaphas/tree.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/gaphas/item.py
r1539 r1540 329 329 True 330 330 >>> len(c.solver._constraints) 331 8331 6 332 332 >>> len(c.solver._marked_cons) 333 333 0 334 334 >>> c.solver.solve() 335 335 >>> len(c.solver._constraints) 336 8336 6 337 337 >>> len(c.solver._marked_cons) 338 338 0 … … 379 379 True 380 380 >>> len(c.solver._constraints) 381 8381 6 382 382 >>> b.teardown_canvas() 383 383 >>> len(c.solver._constraints) gaphas/trunk/gaphas/tests/test_element.py
r1517 r1540 20 20 21 21 h_nw, h_ne, h_se, h_sw = handles 22 assert h_nw ==handles[NW]23 assert h_ne ==handles[NE]24 assert h_sw ==handles[SW]25 assert h_se ==handles[SE]22 assert h_nw is handles[NW] 23 assert h_ne is handles[NE] 24 assert h_sw is handles[SW] 25 assert h_se is handles[SE] 26 26 27 27 # to see how many solver was called: … … 41 41 42 42 self.assertEquals(110 * count, h_se.x) # h_se changed above, should remain the same 43 self.assertEquals(110 * count, h_se.y)43 self.assertEquals(110 * count, float(h_se.y)) 44 44 45 self.assertEquals(110 * count, h_ne.x) 46 self.assertEquals(110 * count, h_sw.y) 45 self.assertEquals(110 * count, float(h_ne.x)) 46 self.assertEquals(110 * count, float(h_sw.y)) 47 gaphas/trunk/gaphas/tree.py
r1532 r1540 42 42 """ 43 43 return self._parents.get(node) 44 # for item, children in self._children.items():45 # if node in children:46 # return item47 44 48 45 def get_children(self, node):
