Package vqt :: Module menubuilder :: Class FieldAdder
[hide private]
[frames] | no frames]

Class FieldAdder

source code

Instance Methods [hide private]
 
__init__(self, splitchar='.') source code
 
_addMenuFields(self, plist) source code
 
_addDynActions(self) source code
 
addDynMenu(self, pathstr, callback)
Add a dynamic menu item which will populate on-hover by asking the specified callback for a list of actions.
source code
 
addField(self, pathstr, callback=None, args=(), tip=None) source code
Method Details [hide private]

addDynMenu(self, pathstr, callback)

source code 

Add a dynamic menu item which will populate on-hover by asking
the specified callback for a list of actions.

Example:
    def callback(name=None):

        if name == None:
            return ('one', 'two', 'three')

        print('SELECTED: %s' % name)

    m.addDynMenu( callback )