aboutsummaryrefslogtreecommitdiff
path: root/components.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-01-29 00:19:00 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-01-29 00:19:00 +0000
commitcd621fe499141885e5a0d8b4e42a0f8a7f41a9ac (patch)
treee9f03b14359517e117726500cf71c3e3d34789a9 /components.py
parent31688e1b8f028059a700a92a8276c97928abd260 (diff)
downloadenigma2-cd621fe499141885e5a0d8b4e42a0f8a7f41a9ac.tar.gz
enigma2-cd621fe499141885e5a0d8b4e42a0f8a7f41a9ac.zip
fixed refcount of eListboxPythonStringContent
Diffstat (limited to 'components.py')
-rw-r--r--components.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/components.py b/components.py
index 20827180..52c94606 100644
--- a/components.py
+++ b/components.py
@@ -229,17 +229,18 @@ class MenuList(HTMLComponent, GUIComponent):
GUIComponent.__init__(self)
def getCurrent(self):
- return self.l.getCurrentSelection()
+# return self.l.getCurrentSelection()
+ return "none"
def GUIcreateInstance(self, priv, parent, skindata):
g = eListbox(parent)
# BIG BIG HACK. :( we have to ensure that the eListboxPythonStringContent doesn't get destroyed.
# we really have to take a look at the GC stuff
- self.l = eListboxPythonStringContent()
- self.l.setList(["Test Object 1", "Item #2", "Item #3", "nun kommt eine Zahl:", 15, "Bla fasel", "lulabla"])
- g.setContent(self.l)
+ l = eListboxPythonStringContent()
+ l.setList(["Test Object 1", "Item #2", "Item #3", "nun kommt eine Zahl:", 15, "Bla fasel", "lulabla"])
+ g.setContent(l)
return g
def GUIdeleteInstance(self, g):
g.setContent(None)
- del self.l
+ #del self.l