comparison pyink/MBScene.py @ 1529:af8dd27bf450

Remove layer from button
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 31 Aug 2011 22:30:02 +0800
parents b7d70341ee57
children 5a3597eba722
comparison
equal deleted inserted replaced
1528:b7d70341ee57 1529:af8dd27bf450
266 layer_num = domview.get_layer_num() 266 layer_num = domview.get_layer_num()
267 domview.insert_layer(layer_num) 267 domview.insert_layer(layer_num)
268 pass 268 pass
269 269
270 def doRemoveLayer(self, w): 270 def doRemoveLayer(self, w):
271 domview = self._domviewui
272 layer_idx, frame_idx = domview.get_current_frame()
273 domview.rm_layer(layer_idx)
271 pass 274 pass
272 275
273 def doInsertKeyScene(self,w): 276 def doInsertKeyScene(self,w):
274 layer_idx, frame_idx = self._domviewui.get_active_layer_frame() 277 layer_idx, frame_idx = self._domviewui.get_active_layer_frame()
275 self.insertKeyScene(layer_idx, frame_idx) 278 self.insertKeyScene(layer_idx, frame_idx)