Here is an example
# Create generator for an outline node and its subtree
p=c.p
pa= p.self_and_subtree()
# Print the top node headline
px= pa.next()
g.es(px.h)
# Print all of the remaining headines in subtree tree
for px in pa:
g.es(px.h)
# Print the top node headline again
px= pa.next()
g.es(px.h)
The code for the last step would work using
px= pb.next()
if there was a way to copy pa as pb as so
pa= p.self_and_subtree()
pb= copy(pa)
or to restart the pa generator
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.