- entry.append( (actionmap, context, action, name ) )
- entry.append( (eListboxPythonMultiContent.TYPE_TEXT, 0, 0, 400, 28, 0, 0, help) )
-
+ if name is None:
+ continue
+
+ if flags & 8: # for long keypresses, prepend l_ into the key name.
+ name = (name[0], "long")
+
+ entry = [ (actionmap, context, action, name ) ]
+
+ if isinstance(help, list):
+ self.extendedHelp = True
+ print "extendedHelpEntry found"
+ x, y, w, h = skin.parameters.get("HelpMenuListExtHlp0",(0, 0, 400, 26))
+ x1, y1, w1, h1 = skin.parameters.get("HelpMenuListExtHlp1",(0, 28, 400, 20))
+ entry.extend((
+ (eListboxPythonMultiContent.TYPE_TEXT, x, y, w, h, 0, 0, help[0]),
+ (eListboxPythonMultiContent.TYPE_TEXT, x1, y1, w1, h1, 1, 0, help[1])
+ ))
+ else:
+ x, y, w, h = skin.parameters.get("HelpMenuListHlp",(0, 0, 400, 28))
+ entry.append( (eListboxPythonMultiContent.TYPE_TEXT, x, y, w, h, 0, 0, help) )
+