Mercurial > MadButterfly
comparison pyink/domview_ui.py @ 1261:6177f5d0ef01
Remove the layer when a layer group being removed.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 11 Jan 2011 17:59:17 +0800 |
parents | df474448364e |
children | 2f861eea1214 |
comparison
equal
deleted
inserted
replaced
1260:bbd6bc0d079a | 1261:6177f5d0ef01 |
---|---|
594 pass | 594 pass |
595 | 595 |
596 ## \brief Find the layer index associated with a given layer group. | 596 ## \brief Find the layer index associated with a given layer group. |
597 # | 597 # |
598 def find_layer_from_group(self, group_id): | 598 def find_layer_from_group(self, group_id): |
599 layer_idx = self._domview.find_layer_from_group(group_id) | 599 layer_idx = self._dom.find_layer_of_group(group_id) |
600 if layer_idx == -1: | 600 if layer_idx == -1: |
601 raise ValueError, \ | 601 raise ValueError, \ |
602 'can not find the layer for group %s' % (group_id) | 602 'can not find the layer for group %s' % (group_id) |
603 return layer_idx | 603 return layer_idx |
604 | 604 |