It's got python in it...
08 Nov 2005In my PN directory I have a file called “init.py”, the contents look like this:
<code>
import pn
def onCharAdded(c, doc):
s = "Got character: " + c
doc.SendMessage(2282, len(s), s)</code>
In my editor window right now, I have:
aGot character: a
It’s not a lot, it leaks, but it is a python interpreter embedded in PN2 responding to keypresses in an editor window. I finally got this going about 10 minutes ago after hours of head-scratching with boost python, boost shared_ptrs and other fun things.