"cancel": self.close
})
+ self["shortcuts"] = ActionMap(["ShortcutActions"],
+ {
+ "red": self.beginFocus,
+ "yellow": self.endFocus
+ })
+
self.entry = entry
# begin, end, description, service
self["begin"] = TimeInput()
self["apply"] = Button("Apply")
self["service"] = Button()
+ def beginFocus(self):
+ self.setFocus(self["begin"])
+
+ def endFocus(self):
+ self.setFocus(self["end"])
+
def apply(self):
print "applied!"