1 from Screen import Screen
2 from Components.ActionMap import NumberActionMap
3 from Components.Label import Label
4 from Components.Button import Button
5 from Components.Pixmap import Pixmap
6 from Components.MenuList import MenuList
7 from Components.Input import Input
8 from enigma import eSize, ePoint
10 class MinuteInput(Screen):
11 def __init__(self, session, basemins = 5):
12 Screen.__init__(self, session)
14 self["minutes"] = Input(str(basemins), type=Input.NUMBER)
16 self["actions"] = NumberActionMap([ "InputActions" , "MinuteInputActions" ],
18 "1": self.keyNumberGlobal,
19 "2": self.keyNumberGlobal,
20 "3": self.keyNumberGlobal,
21 "4": self.keyNumberGlobal,
22 "5": self.keyNumberGlobal,
23 "6": self.keyNumberGlobal,
24 "7": self.keyNumberGlobal,
25 "8": self.keyNumberGlobal,
26 "9": self.keyNumberGlobal,
27 "0": self.keyNumberGlobal,
36 def keyNumberGlobal(self, number):
37 self["minutes"].number(number)
41 self["minutes"].left()
44 self["minutes"].right()
50 self["minutes"].down()
53 self.close(int(self["minutes"].getText()))