Changeset 1659
- Timestamp:
- 07/17/07 13:03:33 (1 year ago)
- Files:
-
- gaphas/branches/hw/gaphas/item.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/branches/hw/gaphas/item.py
r1657 r1659 288 288 self.height = height 289 289 290 # immediately solve the constraints, ensuring the box is drawn okay291 solve_for = (h_ne.y, h_sw.y, h_sw.x, h_ne.x)292 for c, v in zip(self._constraints, solve_for):293 c.solve_for(v)294 295 290 296 291 def _set_width(self, width): … … 308 303 width = self.min_width 309 304 h = self._handles 310 h[SE].x = h[NW].x + width 305 h[NE].x = h[NW].x + width 306 311 307 312 308 def _get_width(self): … … 316 312 """ 317 313 h = self._handles 318 return float(h[ SE].x) - float(h[NW].x)314 return float(h[NE].x) - float(h[NW].x) 319 315 320 316 width = property(_get_width, _set_width) … … 337 333 height = self.min_height 338 334 h = self._handles 339 h[S E].y = h[NW].y + height335 h[SW].y = h[NW].y + height 340 336 341 337 def _get_height(self):
