def export_plugins(self):
"""
dinamically finds the available export plugins
and fills the export menu entry
"""
plugins = gutils.read_plugins('PluginExport', \
self.locations['export_plugins'])
plugins.sort()
for p in plugins:
plugin_module = os.path.basename(p).replace('.py', '')
plugin_name = plugin_module.replace('PluginExport', '')
menu_items = gtk.MenuItem(plugin_name)
self.widgets['menu']['export'].append(menu_items)
menu_items.connect('activate', self.on_export_activate, plugin_name)
menu_items.show()
评论列表
文章目录