run this script once:
if not hasattr(c, 'nn'):
nn = p.insertAsLastChild()
nn.setHeadString('here')
c.nn = nn.copy()
else:
assert c.positionExists(c.nn)
c.selectPosition(c.nn)
then cut the new child node, and run the script again
Doesn't seem right? Perhaps c.positionExists() needs to check that
each position in the chain it follows exists in the child list of the
parent position?
Cheers -Terry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---