Mercurial > MadButterfly
comparison pyink/comp_dock.py @ 1461:31189b5d832a
Add document
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 17 Apr 2011 01:08:26 +0800 |
parents | 75ca2a66c08d |
children | c3e0af5d2487 |
comparison
equal
deleted
inserted
replaced
1460:75ca2a66c08d | 1461:31189b5d832a |
---|---|
233 comp_name = model.get_value(itr, 0) | 233 comp_name = model.get_value(itr, 0) |
234 | 234 |
235 self._domview_ui.rm_component(comp_name) | 235 self._domview_ui.rm_component(comp_name) |
236 pass | 236 pass |
237 | 237 |
238 ## \brief Hint user that given component is selected. | |
239 # | |
240 # Show an icon before the component name. | |
241 # | |
238 def _sel_component(self, comp_name): | 242 def _sel_component(self, comp_name): |
239 all_comp_names = self._domview_ui.all_comp_names() | 243 all_comp_names = self._domview_ui.all_comp_names() |
240 sel_idx = all_comp_names.index(comp_name) | 244 sel_idx = all_comp_names.index(comp_name) |
241 assert sel_idx >= 0 | 245 assert sel_idx >= 0 |
242 | 246 |
297 print tl_name | 301 print tl_name |
298 | 302 |
299 self._domview_ui.rm_timeline(tl_name) | 303 self._domview_ui.rm_timeline(tl_name) |
300 pass | 304 pass |
301 | 305 |
306 ## \brief Hint user that given timeline is selected. | |
307 # | |
308 # Show an icon before the timeline name. | |
309 # | |
302 def _sel_timeline(self, tl_name): | 310 def _sel_timeline(self, tl_name): |
303 all_tl_names = self._domview_ui.all_timeline_names() | 311 all_tl_names = self._domview_ui.all_timeline_names() |
304 sel_idx = all_tl_names.index(tl_name) | 312 sel_idx = all_tl_names.index(tl_name) |
305 assert sel_idx >= 0 | 313 assert sel_idx >= 0 |
306 | 314 |