Package pallavi :: Module EventActionManager :: Class ActionList
[hide private]
[frames] | no frames]

Class ActionList

source code


A dictionary of actions for rapid lookup of action by name. Keys are names of actions and should be equivalent to action.name

Instance Methods [hide private]
 
__setitem__(self, key, value)
Check that all actions added to the dictionary have the correct name.
source code
 
AddAction(self, action)
Add an action to the list
source code
 
Invoke(self, actionName, *args, **kwargs)
Invokes a specific action based on its name and pass optional data to the action
source code
 
UserActions(self)
Obtain a list of actions that are considered visible to the end user as opposed to internal to editor and plugin communication.
source code

Inherited from dict: __cmp__, __contains__, __delitem__, __eq__, __ge__, __getattribute__, __getitem__, __gt__, __hash__, __init__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, clear, copy, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__setitem__(self, key, value)
(Index assignment operator)

source code 
Check that all actions added to the dictionary have the correct name. This means that assignments of the form actionList[x] = y must indicate that y is an action with a name and that x = action.name. Typically assignment would be of the form actionList[action.name] = action, but the AddAction method should really be used instead
Overrides: dict.__setitem__

UserActions(self)

source code 
Obtain a list of actions that are considered visible to the end user as opposed to internal to editor and plugin communication. Such actions would be added to keybinding lists, menus, toolbars, context menus, etc. These actions are identified by having a label that is not None