-from GUIComponent import *
+from GUIComponent import GUIComponent
from enigma import eListboxPythonMultiContent, eListbox, gFont
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()