Ziad El Hachem Ziad El Hachem - 1 year ago 229
Python Question

Python Plugin for Notepad++

I installed PythonScript_1.0.8.0 for notepad++, saved my first script as Test.py
and filled it as follows:

notepad.runPluginCommand('NPPExport', 'Copy RTF to clipboard')

However when running, I got the following error:

line 1, in


TypeError: unbound method Boost.Python.function object must be called
with Editor instance as first argument (got nothing instead)

Any Help?

Answer Source

You need to use editor instead of Editor. Editor is the class and editor is the instance. Example:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download