Mercurial > MadButterfly
comparison pyink/domview_ui.py @ 1252:71222a6b4c06
Implement lock for domview_ui
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 11 Jan 2011 10:36:39 +0800 |
parents | 2f9fa5d59e67 |
children | 07e0cb1e051d |
comparison
equal
deleted
inserted
replaced
1251:fb5ad43c13eb | 1252:71222a6b4c06 |
---|---|
359 super(domview_ui, self).__init__() | 359 super(domview_ui, self).__init__() |
360 self._fl_stack = frameline_stack() | 360 self._fl_stack = frameline_stack() |
361 self._dom = domview() | 361 self._dom = domview() |
362 self._doc = None | 362 self._doc = None |
363 self._root = None | 363 self._root = None |
364 self._lock = False | |
364 pass | 365 pass |
365 | 366 |
366 ## \brief Update content of a frameline from scenes of respective layer. | 367 ## \brief Update content of a frameline from scenes of respective layer. |
367 # | 368 # |
368 def _update_frameline_content(self, layer_idx): | 369 def _update_frameline_content(self, layer_idx): |
639 @property | 640 @property |
640 def root(self): | 641 def root(self): |
641 return self._root | 642 return self._root |
642 | 643 |
643 def lock(self): | 644 def lock(self): |
645 if self._lock: | |
646 return False | |
647 self._lock = True | |
644 return True | 648 return True |
645 | 649 |
646 def unlock(self): | 650 def unlock(self): |
651 self._lock = False | |
647 return True | 652 return True |
648 pass | 653 pass |
649 | 654 |