Changeset 1557
- Timestamp:
- 07/02/07 12:40:43 (1 year ago)
- Files:
-
- gaphas/branches/hw/demo.py (modified) (3 diffs)
- gaphas/branches/hw/gaphas/examples.py (modified) (1 diff)
- gaphas/branches/hw/gaphas/item.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/branches/hw/demo.py
r1555 r1557 296 296 297 297 b=MyBox() 298 h = b.handles()[0]299 h.x = 20300 h.y = 20301 298 b.min_width = 20 302 299 b.min_height = 30 … … 306 303 307 304 fl = FatLine() 308 h1, h2 = fl.handles()309 h1.x = 100310 h1.y = 100311 305 fl.height = 50 312 306 fl.matrix.translate(100, 100) … … 316 310 circle = Circle() 317 311 h1, h2 = circle.handles() 318 h1.x = 50319 h1.y = 100320 312 circle.radius = 20 321 313 circle.matrix.translate(50, 100) gaphas/branches/hw/gaphas/examples.py
r1554 r1557 90 90 def _set_height(self, height): 91 91 h1, h2 = self._handles 92 return h2.y + height92 h2.y = h1.y + height 93 93 94 94 gaphas/branches/hw/gaphas/item.py
r1551 r1557 355 355 h_se = handles[SE] 356 356 357 w, h = self.width, self.height358 x0, y0 = self._canvas.get_matrix_i2w(self, calculate=True).transform_point(0, 0)359 h_nw.x = x0360 h_nw.y = y0361 h_se.x = x0 + w362 h_se.y = y0 + h363 364 357 add = self.canvas.solver.add_constraint 365 358 self._constraints = [
