[sword-devel] PATCH: add swig bindings for entryAttributes
Matt Reimer
mattjreimer at gmail.com
Fri Apr 7 11:41:59 MST 2006
The attached patch makes it possible to access entryAttributes via
swig. I'm using these to get to the NET footnotes in my little pygtk
sword reader.
A python example:
attr = mod.getEntryAttributes()
for k, v in attr.items():
print "key %s => %s" % (k.getRawData(), v)
for k2, v2 in v.items():
print " key %s => %s" % (k2.getRawData(), v)
for k3, v3 in v2.items():
print " %s = %s" % (k3.getRawData(), v3.getRawData())
Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sword.patch
Type: application/octet-stream
Size: 861 bytes
Desc: not available
Url : http://www.crosswire.org/pipermail/sword-devel/attachments/20060407/aa135b6f/sword.obj
More information about the sword-devel
mailing list