Changeset 1917
- Timestamp:
- 08/13/07 13:33:13 (1 year ago)
- Files:
-
- gaphas/trunk/gaphas/item.py (modified) (2 diffs)
- gaphas/trunk/gaphas/solver.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/gaphas/item.py
r1906 r1917 385 385 386 386 self._c_min_w.delta = min_width 387 if self.canvas: 388 self.canvas.solver.request_resolve_constraint(self._c_min_w) 387 389 388 390 min_width = reversible_property(lambda s: s._c_min_w.delta, _set_min_width) … … 397 399 398 400 self._c_min_h.delta = min_height 401 if self.canvas: 402 self.canvas.solver.request_resolve_constraint(self._c_min_h) 399 403 400 404 min_height = reversible_property(lambda s: s._c_min_h.delta, _set_min_height) gaphas/trunk/gaphas/solver.py
r1882 r1917 485 485 486 486 reversible_pair(add_constraint, remove_constraint) 487 488 489 def request_resolve_constraint(self, c): 490 """ 491 Request resolving a constraint. 492 """ 493 self._marked_cons.append(c) 494 487 495 488 496 def constraints_with_variable(self, *variables):
