allow burning DVDs with multiple titles where playback automatically jumps to the...
[enigma2.git] / lib / python / Components / HelpMenuList.py
index 99bd536db3d53bf0968d6e476358b386ed2e8f27..25c9b8b6bcbb397ad085eb62690f530a7d1b8349 100644 (file)
@@ -1,4 +1,4 @@
-from GUIComponent import *
+from GUIComponent import GUIComponent
 
 from enigma import eListboxPythonMultiContent, eListbox, gFont
 
@@ -34,7 +34,9 @@ class HelpMenuList(GUIComponent):
                                                break
 
                                if flags & 8: # for long keypresses, prepend l_ into the key name.
-                                       name = ("l_" + name[0], name[1], name[2])
+                                       name = (name[0], "long")
+                                       
+                               print "name:", name
 
                                entry.append( (actionmap, context, action, name ) )
                                entry.append( (eListboxPythonMultiContent.TYPE_TEXT, 0, 0, 400, 28, 0, 0, help) )
@@ -63,9 +65,12 @@ class HelpMenuList(GUIComponent):
 
        def postWidgetCreate(self, instance):
                instance.setContent(self.l)
-
                instance.selectionChanged.get().append(self.selectionChanged)
 
+       def preWidgetRemove(self, instance):
+               instance.setContent(None)
+               instance.selectionChanged.get().remove(self.selectionChanged)
+
        def selectionChanged(self):
                for x in self.onSelChanged:
                        x()