# the module has to be named plug_*.py, where * is whatever you want
# This is the reference to the vapt MainFrame instance
# It's global for now so you can use it in any funciton
# or class, just dont assign anything to it.
mf = None
def load(mainframe):
"""This is called when vapt loads.
"""
global mf
mf = mainframe
return 'Name you want in the menu for this plugin'
def run():
"""This will be called when the menu is clicked.
"""
print 'Hello vapt'
def unload():
"""This is called just before vapt shuts down.
"""
pass