musicbrainz/picard — pull request #33 by brianfreud (2012-04-19 02:14:42+00:00)
Title: Add new plugin extension point register_add_plugin_submenu

Add new plugin extension point register_add_plugin_submenu to allow submenus to be created in the Plugins context menu.

Really basic example use plugin:

from PyQt4 import QtCore, QtGui
from picard.ui.itemviews import register_add_plugin_submenu

foo_menu = QtGui.QMenu(_("&Foo"))
register_add_plugin_submenu(search_menu)