Mercurial > MadButterfly
diff pyink/comp_dock.py @ 1514:fa4d0480d6cb
Switch the component that FSM editor is working on
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 11 May 2011 00:05:59 +0800 |
parents | c3e0af5d2487 |
children | 04b67119df8c |
line wrap: on
line diff
--- a/pyink/comp_dock.py Tue May 10 23:43:12 2011 +0800 +++ b/pyink/comp_dock.py Wed May 11 00:05:59 2011 +0800 @@ -356,19 +356,17 @@ fsm_win.set_svg_view(view_widget) pass - def _show_FSM_editor(self): + def _show_FSM_for_comp(self, comp_name): if not self._fsm_editor_win: self._prepare_FSM_editor() fsm_win = self._fsm_editor_win else: fsm_win = self._fsm_editor_win pass + fsm_win.switch_component(comp_name) fsm_win.show() pass - def _show_FSM_for_comp(self, comp_name): - pass - def on_add_comp_clicked(self, *args): self._add_component() self._drop_undo() @@ -442,7 +440,6 @@ ## \brief User clicks "State Machine" on context menu for a component. # def on_edit_FSM_activate(self, *args): - self._show_FSM_editor() comp_name = self._current_component() self._show_FSM_for_comp(comp_name) pass