Changeset 1885

Show
Ignore:
Timestamp:
08/09/07 01:57:02 (1 year ago)
Author:
arj..@yirdis.nl
Message:

Updated HandleTool documentation. disabled solver speed test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gaphas/trunk/gaphas/tests/test_solver.py

    r1716 r1885  
    142142    Solver speed tests. 
    143143    """ 
    144     def skip__test_speed_run_weakest(self): 
     144    def _test_speed_run_weakest(self): 
    145145        """ 
    146146        Speed test for weakest variable. 
  • gaphas/trunk/gaphas/tool.py

    r1780 r1885  
    408408    def move(self, view, item, handle, x, y): 
    409409        """ 
    410         Move the handle to position (x,y). 
     410        Move the handle to position ``(x,y)``. ``x`` and ``y`` are in 
     411        item coordnates. 
    411412        """ 
    412413        handle.x = x 
     
    414415 
    415416 
    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. 
    424427        """ 
    425428 
     
    462465            view = context.view 
    463466            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) 
    466468        finally: 
    467469            context.view.queue_draw_item(context.view.hovered_item)