Mercurial > MadButterfly
comparison pyink/domview.py @ 1459:8eecaca2a125
Fix bug when renaming component
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 16 Apr 2011 23:29:37 +0800 |
parents | 8e8c9ab3818f |
children | 5ff744b981fb |
comparison
equal
deleted
inserted
replaced
1458:59b90d7fcf57 | 1459:8eecaca2a125 |
---|---|
538 pass | 538 pass |
539 | 539 |
540 def rename_component(self, comp_name, new_name): | 540 def rename_component(self, comp_name, new_name): |
541 comp = self._get_component(comp_name) | 541 comp = self._get_component(comp_name) |
542 comp.rename(new_name) | 542 comp.rename(new_name) |
543 self._comp_names.remove(comp_name) | |
544 self._comp_names.add(new_name) | |
543 pass | 545 pass |
544 | 546 |
545 def get_component_group(self, comp_name): | 547 def get_component_group(self, comp_name): |
546 comp = self._get_component(comp_name) | 548 comp = self._get_component(comp_name) |
547 | 549 |