diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-01-28 02:39:09 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-01-28 02:39:09 +0000 |
| commit | 8ade23537a682d4b0c9709d533b25702bde2ee23 (patch) | |
| tree | d558411192229a6ddb407b8b067658572b6a9e6b /components.py | |
| parent | 1a46b8d1505a1496dfdce0a9f96dde7efbc65d65 (diff) | |
| download | enigma2-8ade23537a682d4b0c9709d533b25702bde2ee23.tar.gz enigma2-8ade23537a682d4b0c9709d533b25702bde2ee23.zip | |
- add listbox
- add listbox example to python (press space, use 1..5)
- fix label text positions
Diffstat (limited to 'components.py')
| -rw-r--r-- | components.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/components.py b/components.py index 4c26c0a0..8115ecf4 100644 --- a/components.py +++ b/components.py @@ -97,8 +97,10 @@ class GUIComponent: i = self.GUIcreateInstance(self, parent, skindata) priv["instance"] = i self.notifier.append(i) - if self.notifierAdded: + try: self.notifierAdded(i) + except: + pass # GUIdelete must delete *all* references to the current component! def GUIdelete(self, priv): @@ -221,3 +223,11 @@ class VolumeBar(HTMLComponent, GUIComponent, VariableValue): g = eSlider(parent) g.setRange(0, 100) return g + +class MenuList(HTMLComponent, GUIComponent): + def __init__(self): + GUIComponent.__init__(self) + + def GUIcreateInstance(self, priv, parent, skindata): + g = eListbox(parent) + return g |
