Changeset 1885
- Timestamp:
- 08/09/07 01:57:02 (1 year ago)
- Files:
-
- gaphas/trunk/gaphas/tests/test_solver.py (modified) (1 diff)
- gaphas/trunk/gaphas/tool.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
gaphas/trunk/gaphas/tests/test_solver.py
r1716 r1885 142 142 Solver speed tests. 143 143 """ 144 def skip__test_speed_run_weakest(self):144 def _test_speed_run_weakest(self): 145 145 """ 146 146 Speed test for weakest variable. gaphas/trunk/gaphas/tool.py
r1780 r1885 408 408 def move(self, view, item, handle, x, y): 409 409 """ 410 Move the handle to position (x,y). 410 Move the handle to position ``(x,y)``. ``x`` and ``y`` are in 411 item coordnates. 411 412 """ 412 413 handle.x = x … … 414 415 415 416 416 def glue(self, view, item, handle, wx, wy): 417 """ 418 Find an item near @handle that @item can connect to. 419 """ 420 421 def connect(self, view, item, handle, wx, wy): 422 """ 423 Find an item near @handle that @item can connect to and connect. 417 def glue(self, view, item, handle, vx, vy): 418 """ 419 Find an item near ``handle` that ``item`` can connect to. 420 ``vx`` and ``vy`` are the pointer (view) coordinates. 421 """ 422 423 def connect(self, view, item, handle, vx, vy): 424 """ 425 Find an item near ``handle`` that ``item`` can connect to and connect. 426 ``vx`` and ``vy`` are the pointer (view) coordinates. 424 427 """ 425 428 … … 462 465 view = context.view 463 466 if self._grabbed_handle and self._grabbed_handle.connectable: 464 x, y = event.x, event.y 465 self.connect(view, self._grabbed_item, self._grabbed_handle, x, y) 467 self.connect(view, self._grabbed_item, self._grabbed_handle, event.x, event.y) 466 468 finally: 467 469 context.view.queue_draw_item(context.view.hovered_item)
