| www.delorie.com/archives/browse.cgi | search |
Mitch Davis (mjd+geda-user AT hackvana DOT com)
[via geda-user AT delorie DOT com] wrote:
>>import xorn.storage
>>from xorn.geda.read import read
>>
>>sch = read('some-schematic.sch')
>>
>>for ob in sch.toplevel_objects():
>>data = ob.data()
>>if isinstance(data, xorn.storage.Line):
>>print 'X1: %d Y1: %d X2: %d Y2: %d' % (
>>data.x, data.y, data.x + data.width, data.y + data.height)
>>
>
> I don't know why everyone is complaining about Scheme. I can read
> this just fine, the first time I ever saw it.
It is written in python. Maybe, that's why...
---<)kaimartin(>---
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |