From 6f73e6abddf4170357c490966d0e1c622eb376f5 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Thu, 14 Feb 2008 19:44:14 +0000 Subject: add support for cyclic garbage collection to eTimer and eSocketNotifier class, add simpler method to set a timer callback.. or remove.. instead of timer.timeout.get().append(func).. or .remove(func)... now it is possible to do timer.callback.append(func)... timer.callback.remove(func) (the old method still works..but is now deprecated) --- lib/python/Screens/ParentalControlSetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/python/Screens/ParentalControlSetup.py') diff --git a/lib/python/Screens/ParentalControlSetup.py b/lib/python/Screens/ParentalControlSetup.py index f5f48e25..6ae12cae 100644 --- a/lib/python/Screens/ParentalControlSetup.py +++ b/lib/python/Screens/ParentalControlSetup.py @@ -148,7 +148,7 @@ class ParentalControlEditor(Screen): self.currentLetter = chr(SPECIAL_CHAR) self.readServiceList() self.chooseLetterTimer = eTimer() - self.chooseLetterTimer.timeout.get().append(self.chooseLetter) + self.chooseLetterTimer.callback.append(self.chooseLetter) self.onLayoutFinish.append(self.LayoutFinished) self["actions"] = NumberActionMap(["DirectionActions", "ColorActions", "OkCancelActions", "NumberActions"], -- cgit v1.2.3