Mercurial > MadButterfly
comparison pyink/MBScene.py @ 1251:fb5ad43c13eb
Rename onCellClick to do_CellClick
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 11 Jan 2011 10:33:46 +0800 |
parents | 62eaa20b8cf7 |
children | 07e0cb1e051d |
comparison
equal
deleted
inserted
replaced
1250:62eaa20b8cf7 | 1251:fb5ad43c13eb |
---|---|
269 | 269 |
270 # The selection is a PYSPObject. Convert it to be PYNode | 270 # The selection is a PYSPObject. Convert it to be PYNode |
271 self.change_active_frame(self.last_select.repr.parent()) | 271 self.change_active_frame(self.last_select.repr.parent()) |
272 pass | 272 pass |
273 | 273 |
274 def onCellClick(self, layer_idx, frame_idx): | 274 def do_CellClick(self, layer_idx, frame_idx): |
275 self._lockui = True | 275 self._lockui = True |
276 | 276 |
277 self._director.show_scene(frame_idx) | 277 self._director.show_scene(frame_idx) |
278 self.selectSceneObject(layer_idx, frame_idx) | 278 self.selectSceneObject(layer_idx, frame_idx) |
279 | 279 |
415 pass | 415 pass |
416 | 416 |
417 self.document = self.desktop.doc().rdoc | 417 self.document = self.desktop.doc().rdoc |
418 | 418 |
419 self._domview.handle_doc_root(self.document, self._root) | 419 self._domview.handle_doc_root(self.document, self._root) |
420 self._domview.register_active_frame_callback(self.onCellClick) | 420 self._domview.register_active_frame_callback(self.do_CellClick) |
421 self._director = scenes_director(self._domview) | 421 self._director = scenes_director(self._domview) |
422 | 422 |
423 if self.top == None: | 423 if self.top == None: |
424 self.top = gtk.VBox(False, 0) | 424 self.top = gtk.VBox(False, 0) |
425 toplevel = self.desktop.getToplevel() | 425 toplevel = self.desktop.getToplevel() |