/[ascend]/trunk/pygtk/canvas/connectortool.py
ViewVC logotype

Diff of /trunk/pygtk/canvas/connectortool.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2310 by grivan, Mon May 24 00:04:12 2010 UTC revision 2311 by jpye, Mon Nov 1 05:51:07 2010 UTC
# Line 6  from blockline import BlockLine Line 6  from blockline import BlockLine
6  import cairo  import cairo
7    
8  # ConnectorTool for Gaphas canvas, by John Pye, 4 Nov 2008.  # ConnectorTool for Gaphas canvas, by John Pye, 4 Nov 2008.
 # http://pye.dyndns.org  
9    
10  class ConnectorTool(BlockConnectTool):  class ConnectorTool(BlockConnectTool):
11      """      """
# Line 69  class ConnectorTool(BlockConnectTool): Line 68  class ConnectorTool(BlockConnectTool):
68          canvas.add(line)          canvas.add(line)
69          x, y = self.view.get_matrix_v2i(line).transform_point(x, y)          x, y = self.view.get_matrix_v2i(line).transform_point(x, y)
70          line.matrix.translate(x, y)          line.matrix.translate(x, y)
         return line  
71            return line

Legend:
Removed from v.2310  
changed lines
  Added in v.2311

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22