Mercurial > MadButterfly
changeset 1280:434f588fcde4
Handle the change of attribute 'start' and 'end'. We do reset here. However, we should be able to optimize it latter to update the scenes directly.
author | wycc |
---|---|
date | Fri, 14 Jan 2011 00:00:11 +0800 |
parents | 1b03b6d9a915 |
children | e12472f8eef3 |
files | pyink/consistency.py pyink/domview.py |
diffstat | 2 files changed, 14 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/pyink/consistency.py Thu Jan 13 23:53:38 2011 +0800 +++ b/pyink/consistency.py Fri Jan 14 00:00:11 2011 +0800 @@ -134,14 +134,19 @@ pass def do_attr_modified(self, node, name, old_value, new_value): - if node.name() == 'ns0:scene' and name == 'ref': - try: - if new_value: - raise ValueError('The new_value is not empty') - self._domviewui.reset() - except: - traceback.print_exc() + if node.name() == 'ns0:scene': + if name == 'ref': + try: + if new_value: + raise ValueError('The new_value is not empty') + self._domviewui.reset() + except: + traceback.print_exc() + pass pass - pass + elif name == 'end' or name == 'start': + self._domviewui.reset() + pass + pass pass