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

Contents of /trunk/pygtk/canvas/blockline.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1979 - (show annotations) (download) (as text)
Sat Jan 10 00:21:37 2009 UTC (13 years, 5 months ago) by jpye
File MIME type: text/x-python
File size: 452 byte(s)
Basic MODEL export functionality now in place for canvas.
Still needs lots of cleaning up though.

1
2 from gaphas.item import Line
3 from blockinstance import LineInstance
4
5 class BlockLine(Line):
6 """
7 This is a subclass of Line that keeps a line to an embedded
8 `ConnectorInstance` which holds the block-diagram data relating to the
9 ports connected at either end of the line.
10
11 The `ConnectorInstance` will be manipulated by the `BlockConnectorTool`.
12 """
13
14 def __init__(self):
15 super(BlockLine, self).__init__()
16 self.lineinstance = LineInstance()
17
18

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