Top

ped_extensions.dummy_extension module

extension to test the extension_manager

# Copyright 2014 James P Goodwin ped tiny python editor
""" extension to test the extension_manager  """
from ped_core.editor_common import Editor
from ped_dialog.message_dialog import message
import time


def ped_ext_info():
    """ return registration information for extension_manager """
    return ( "CMD_HELP", None, None, None, "test_extension" )


def ped_ext_invoke( cmd_id, target, ch ):
    """ do our thing with the target object """
    message( target.scr, "Help Extension", "On our way to help!",False )
    time.sleep(5)
    return True

Functions

def ped_ext_info(

)

return registration information for extension_manager

def ped_ext_info():
    """ return registration information for extension_manager """
    return ( "CMD_HELP", None, None, None, "test_extension" )

def ped_ext_invoke(

cmd_id, target, ch)

do our thing with the target object

def ped_ext_invoke( cmd_id, target, ch ):
    """ do our thing with the target object """
    message( target.scr, "Help Extension", "On our way to help!",False )
    time.sleep(5)
    return True