Mercurial > MadButterfly
diff pyink/domview_ui.py @ 1315:fcff6978f9bf
User can switch components.
- component_manager will change domview._scenes_node and
domview._layers_parent for switching component and timeline.
- domview relys on domview._scenes_node and domview._layers_parent to
find scene nodes and layers.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 22 Jan 2011 14:23:42 +0800 |
parents | e6bb9d00341f |
children | 9ab8d50dcf7e |
line wrap: on
line diff
--- a/pyink/domview_ui.py Thu Jan 20 15:53:00 2011 +0800 +++ b/pyink/domview_ui.py Sat Jan 22 14:23:42 2011 +0800 @@ -410,6 +410,9 @@ def switch_component(self, name): self._dom.switch_component(name) + self.reset() # FIXME: it would parse layers again + # while switch_compoent already parses + # it. pass def all_comp_names(self): @@ -509,7 +512,7 @@ self._root = root pass - ## \brief Reload the document. + ## \brief Parse the document from the scratch and update UI. # def reset(self): self._fl_stack.remove_all_framelines()