Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 C++ 启动一个中等(学术)项目,我需要用户能够编写小脚本,这些脚本直接与主程序交互。作为一种方法,我的第一个想法是用它的插件制作像 Gedit 一样的东西(事实上我考虑过它,因为它与我需要做的非常相似。)
我确实有一些为 geddit 编写插件的经验,但在编写插件框架方面经验为零。写一个类似于gedit的对我来说真的很难吗?(我的意思是,它向 python 公开其 API,然后加载 python 插件并调用其方法的方式)。如果您有经验,谁能指出我正确的方向或教我一点?
幸运的是,可以使用 gedit 的插件框架。您可以使用Ethos,它与 gedit 使用的插件框架相同,只是没有 gedit。