Changeset 2256
- Timestamp:
- 03/05/08 23:48:49 (4 months ago)
- Files:
-
- gaphas/trunk/gaphas/item.py (modified) (3 diffs)
- gaphas/trunk/gaphas/tests/test_line.py (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/gaphas/item.py
r2214 r2256 463 463 fuzziness = reversible_property(lambda s: s._fuzziness, _set_fuzziness) 464 464 465 @observed 466 def _set_orthogonal(self, orthogonal): 467 """ 468 >>> a = Line() 469 >>> a.orthogonal 470 False 471 """ 465 def _set_orthogonal_constraints(self, orthogonal): 472 466 if not self.canvas: 473 467 self._orthogonal = orthogonal and [ None ] or [] … … 497 491 self.request_update() 498 492 493 @observed 494 def _set_orthogonal(self, orthogonal): 495 """ 496 >>> a = Line() 497 >>> a.orthogonal 498 False 499 """ 500 self._set_orthogonal_constraints(orthogonal) 501 499 502 orthogonal = reversible_property(lambda s: bool(s._orthogonal), _set_orthogonal) 500 503 … … 510 513 """ 511 514 self._horizontal = horizontal 512 self._set_orthogonal (self._orthogonal)515 self._set_orthogonal_constraints(self._orthogonal) 513 516 514 517 horizontal = reversible_property(lambda s: s._horizontal, _set_horizontal)
