예제 #1
0
파일: script.py 프로젝트: pmarti/pyclutter
    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
예제 #2
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
예제 #3
0
 def do_timeline_start(self, score, timeline):
     print "timeline started: %s" % (clutter.get_script_id(timeline))
예제 #4
0
파일: script.py 프로젝트: pmarti/pyclutter
 def do_timeline_start (self, score, timeline):
     print "timeline started: %s" % (clutter.get_script_id(timeline))