aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/config.py')
-rw-r--r--lib/python/Components/config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index a872c300..de06871a 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -328,6 +328,8 @@ class ConfigSequence(ConfigElement):
self.default = default
self.value = copy.copy(default)
+
+ self.endNotifier = []
def validate(self):
max_pos = 0
@@ -344,6 +346,8 @@ class ConfigSequence(ConfigElement):
num += 1
if self.marked_pos >= max_pos:
+ for x in self.endNotifier:
+ x(self)
self.marked_pos = max_pos - 1
if self.marked_pos < 0:
@@ -357,6 +361,9 @@ class ConfigSequence(ConfigElement):
if self.marked_pos >= total_len:
self.marked_pos = total_len - 1
+
+ def addEndNotifier(self, notifier):
+ self.endNotifier.append(notifier)
def handleKey(self, key):
if key == KEY_LEFT: