Mercurial > MadButterfly
diff pyink/comp_dock.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 | 2aa3770f02bf |
children | 9ab8d50dcf7e |
line wrap: on
line diff
--- a/pyink/comp_dock.py Thu Jan 20 15:53:00 2011 +0800 +++ b/pyink/comp_dock.py Sat Jan 22 14:23:42 2011 +0800 @@ -235,7 +235,11 @@ pass def on_treeview_components_cursor_changed(self, *args): - print args + comp_name = self._current_component() + print comp_name + + domview_ui = self._domview_ui + domview_ui.switch_component(comp_name) pass def on_cellrenderer_comp_edited(self, renderer, path,