python from ajenti.api import * from ajenti.plugins import * class MyPlugin(CategoryPlugin): text = 'My Plugin' icon = '/path/to/icon.png' folder = 'system' def on_session_start(self): pass def on_session_end(self): pass @plugin class MyPluginUI(UIPlugin): typeid = 'myplugin' def create_widget(self): return MyPluginUI.widget.Widget(self.app) class widget(UIPlugin.widget): def init(self, context): pass def on_submit(self, data): pass ajenti.SingletonPluginManager.register(MyPlugin) pip install ajenti


上一篇:
下一篇:
切换中文