Why I cant run the code saved it in 'filter.py':
When I press the script menu item it says:
Traceback (most recent call last):
File "C:\Users\david\AppData\Roaming\Notepad++\plugins\Config\PythonScript\scripts\filter.py", line 1, in <module>
TypeError: unbound method Boost.Python.function object must be called with Editor instance as first argument (got nothing instead)
Thank you all,
I finallly autoresolved…
as I have python interpreter installed in
Reinit Notepad++ and all start to work.
Actually that wasn't your problem - it doesn't matter if you remove the python27.dll if you've got Python 2.7 installed. Personally I'd leave it there, as that's the tested version, but that's up to you.
You just need to use
Editor is the class, editor is the instance. There's also editor1 and editor2 instances, which refer to the first and second views - editor always points to the current view.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.