Mercurial > MadButterfly
comparison pyink/comp_dock.py @ 1457:416a18409603
Show an empty document in SVG viewer widget
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sat, 16 Apr 2011 22:25:35 +0800 |
parents | 894a4bf35fe6 |
children | 59b90d7fcf57 |
comparison
equal
deleted
inserted
replaced
1456:894a4bf35fe6 | 1457:416a18409603 |
---|---|
275 | 275 |
276 timeline_name = self._current_timeline() | 276 timeline_name = self._current_timeline() |
277 domview_ui.switch_timeline(timeline_name) | 277 domview_ui.switch_timeline(timeline_name) |
278 pass | 278 pass |
279 | 279 |
280 def _prepare_FSM_editor(self): | |
281 def FSM_editor_close(): | |
282 self._fsm_editor_win.hide() | |
283 pass | |
284 | |
285 def FSM_editor_destroy(): | |
286 self._fsm_editor_win = None | |
287 pass | |
288 | |
289 fsm_win = FSM_window.FSM_window(FSM_editor_close, | |
290 FSM_editor_destroy) | |
291 self._fsm_editor_win = fsm_win | |
292 | |
293 doc = pybInkscape.createSPDocument() | |
294 view_widget = pybInkscape.create_svg_view_widget(doc) | |
295 view_widget.show() | |
296 | |
297 self._FSM_doc = doc | |
298 self._FSM_view_widget = view_widget | |
299 | |
300 fsm_win.set_svg_view(view_widget) | |
301 pass | |
302 | |
280 def _show_FSM_editor(self): | 303 def _show_FSM_editor(self): |
281 if not self._fsm_editor_win: | 304 if not self._fsm_editor_win: |
282 def FSM_editor_close(): | 305 self._prepare_FSM_editor() |
283 self._fsm_editor_win.hide() | 306 fsm_win = self._fsm_editor_win |
284 pass | |
285 def FSM_editor_destroy(): | |
286 self._fsm_editor_win = None | |
287 pass | |
288 fsm_win = FSM_window.FSM_window(FSM_editor_close, | |
289 FSM_editor_destroy) | |
290 self._fsm_editor_win = fsm_win | |
291 else: | 307 else: |
292 fsm_win = self._fsm_editor_win | 308 fsm_win = self._fsm_editor_win |
293 pass | 309 pass |
294 fsm_win.show() | 310 fsm_win.show() |
295 pass | 311 pass |