예제 #1
0
 def eventSync(self):
     event = EventInfo(self.session.nav, EventInfo.NOW).getEvent()
     if event is not None:
         progress = (int(time.time()) - event.getBeginTime()) * 1000
         self.engine.seekTo(progress)
     else:
         self.session.open(MessageBox, _("cannot sync to event, event is not available"), MessageBox.TYPE_INFO, simple=True, timeout=3)