我为PythonScript_1.0.8.0安装了notepad++,将第一个脚本保存为Test.py,并按如下方式填充:
Editor.selectAll()
Editor.paste()
notepad.runPluginCommand('NPPExport', 'Copy RTF to clipboard')
但是,在运行时,我得到了以下错误:
文件"C:\Users\AA\AppData\Roaming\Notepad++\plugins\Config\PythonScript\scripts\Test.py",第1行,在 Editor.selectAll() TypeError:必须以编辑器实例作为第一个参数来调用未绑定方法Boost.Python.function对象(没有得到任何结果)
有什么帮助吗?
发布于 2016-09-09 08:28:16
您需要使用editor
而不是Editor
。Editor
是类,editor
是实例。示例:
editor.selectAll()
https://stackoverflow.com/questions/39415924
复制相似问题