Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
1314:2aa3770f02bf | 1315:fcff6978f9bf |
---|---|
233 def on_remove_comp_clicked(self, *args): | 233 def on_remove_comp_clicked(self, *args): |
234 self._rm_component() | 234 self._rm_component() |
235 pass | 235 pass |
236 | 236 |
237 def on_treeview_components_cursor_changed(self, *args): | 237 def on_treeview_components_cursor_changed(self, *args): |
238 print args | 238 comp_name = self._current_component() |
239 print comp_name | |
240 | |
241 domview_ui = self._domview_ui | |
242 domview_ui.switch_component(comp_name) | |
239 pass | 243 pass |
240 | 244 |
241 def on_cellrenderer_comp_edited(self, renderer, path, | 245 def on_cellrenderer_comp_edited(self, renderer, path, |
242 new_text, *args): | 246 new_text, *args): |
243 print '%s - %s' % (path, new_text) | 247 print '%s - %s' % (path, new_text) |