| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
OnDemandActionMixin --+
|
object --+ |
| |
debug.debugmixin --+ |
| |
SelectAction --+ |
| |
ListAction --+
|
OnDemandGlobalListAction
On-demand list that shares its items in all menu bars.
Menu items are shared by using class attributes for the storage. Be aware that you either have to, in your subclass of OnDemandGlobalListAction, have to explicitly name a class attribute 'storage' and it must be a list, or you can call your subclasses class method setStorage and supply it with a list.
| Nested Classes | |
|
Inherited from |
| Instance Methods | |||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
| Class Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Class Variables | |
globalhash = 0
|
|
storage = None
|
|
|
Inherited from Inherited from Inherited from |
|
| Properties | |
|
Inherited from |
| Method Details |
Hash calculation method to determine if menu items have changed. The default implementation is a simplistic one that changes every time calcHash is called, guaranteeing that the menu will be updated the next time. If calcHash sets cls.localhash or cls.globalhash to None, the menu will always be updated. |
Simplistic implementation that only keeps track of additions or deletions. Should more rigorous hashing be needed, override this.
|
|
Hook called before the menu is displayed. This method allows the subclass to catch the menu opening event before it anything is added to the menu bar. When used in combination with a list, the list may be reordered and menu items can be inserted or deleted.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:14 2008 | http://epydoc.sourceforge.net |