Mercurial > MadButterfly
diff 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 |
line wrap: on
line diff
--- a/pyink/domview_ui.py Tue Jan 11 10:33:46 2011 +0800 +++ b/pyink/domview_ui.py Tue Jan 11 10:36:39 2011 +0800 @@ -361,6 +361,7 @@ self._dom = domview() self._doc = None self._root = None + self._lock = False pass ## \brief Update content of a frameline from scenes of respective layer. @@ -641,9 +642,13 @@ return self._root def lock(self): + if self._lock: + return False + self._lock = True return True def unlock(self): + self._lock = False return True pass