Mercurial > MadButterfly
diff pyink/domview_ui.py @ 1245:ccbf0c5d01d1
Move code of setCurrentScene to tween.py.
- setCurrentScene() is removed from MBScene.
- Add a new class scenes_director in tween.py.
- scenes_director.show_scene() replaces setCurrentScene().
- MBScene instantiates a scenes_director, and calls
scenes_director.show_scene() to switch scenes.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 10 Jan 2011 19:07:26 +0800 |
parents | b241f9768833 |
children | 42c4874c8d1e |
line wrap: on
line diff
--- a/pyink/domview_ui.py Mon Jan 10 16:48:11 2011 +0800 +++ b/pyink/domview_ui.py Mon Jan 10 19:07:26 2011 +0800 @@ -358,6 +358,8 @@ super(domview_ui, self).__init__() self._fl_stack = frameline_stack() self._dom = domview() + self._doc = None + self._root = None pass ## \brief Update content of a frameline from scenes of respective layer. @@ -402,6 +404,9 @@ self._fl_stack._init_framelines() self._add_frameline_for_every_layer() self._fl_stack._show_framelines() + + self._doc = doc + self._root = root pass ## \brief Mark given frame as a key frame. @@ -614,5 +619,13 @@ def get_max_frame(self): max_frame = self._dom.get_max_frame() return max_frame + + @property + def doc(self): + return self._doc + + @property + def root(self): + return self._root pass