# [ ( actionmap, context, [(action, help), (action, help), ...] ), (actionmap, ... ), ... ]
class HelpMenuList(GUIComponent):
- def __init__(self, list, callback):
+ def __init__(self, helplist, callback):
GUIComponent.__init__(self)
self.onSelChanged = [ ]
self.l = eListboxPythonMultiContent()
self.extendedHelp = False
l = [ ]
- for (actionmap, context, actions) in list:
+ for (actionmap, context, actions) in helplist:
for (action, help) in actions:
entry = [ ]
entry.append( (actionmap, context, action, name ) )
- if type(help).__name__== 'list':
+ if isinstance(help, list):
self.extendedHelp = True
print "extendedHelpEntry found"
entry.append( (eListboxPythonMultiContent.TYPE_TEXT, 0, 0, 400, 26, 0, 0, help[0]) )