def run (self): self.load_script() self._timelines = self._script.get_objects('move-timeline', 'scale-timeline', 'fade-timeline') for timeline in self._timelines: print "Timeline: %s" % (clutter.get_script_id (timeline)) self._score.append(timeline=self._timelines[0]) self._score.append(timeline=self._timelines[1], parent=self._timelines[0]) self._score.append(timeline=self._timelines[2], parent=self._timelines[1]) assert(3 == len(self._score.list_timelines())) self._stage = self._script.get_object('main-stage') self._stage.show_all() clutter.main() return 0
def run(self): self.load_script() self._timelines = self._script.get_objects('move-timeline', 'scale-timeline', 'fade-timeline') for timeline in self._timelines: print "Timeline: %s" % (clutter.get_script_id(timeline)) self._score.append(timeline=self._timelines[0]) self._score.append(timeline=self._timelines[1], parent=self._timelines[0]) self._score.append(timeline=self._timelines[2], parent=self._timelines[1]) assert (3 == len(self._score.list_timelines())) self._stage = self._script.get_object('main-stage') self._stage.show_all() clutter.main() return 0
def do_timeline_start(self, score, timeline): print "timeline started: %s" % (clutter.get_script_id(timeline))
def do_timeline_start (self, score, timeline): print "timeline started: %s" % (clutter.get_script_id(timeline))