Mercurial > MadButterfly
diff pyink/comp_dock.py @ 1336:0b5ee9c90af7
Update components and timelines list for async changes on DOM
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 01 Feb 2011 23:20:26 +0800 |
parents | 194c7a831083 |
children | d0e6f350b3fd |
line wrap: on
line diff
--- a/pyink/comp_dock.py Mon Jan 31 23:21:20 2011 +0800 +++ b/pyink/comp_dock.py Tue Feb 01 23:20:26 2011 +0800 @@ -164,6 +164,11 @@ def start_handle_ui_events(self): self._builder.connect_signals(self) pass + + def install_dock(self, desktop): + doc = desktop.doc() + doc.connectCommit(self.on_commit) + pass def _current_component(self): treeview = self._components_treeview @@ -400,6 +405,10 @@ self._desktop.doc().done("None", "Switch to another timeline") pass + + def on_commit(self): + print 'commit' + pass pass ## \brief Component dock @@ -412,4 +421,9 @@ self.start_handle_ui_events() pass + + def install_dock(self, desktop): + comp_dock_base.install_dock(self, desktop) + comp_dock_ui.install_dock(self, desktop) + pass pass