Mercurial > MadButterfly
comparison pyink/domview_ui.py @ 1355:f1fa284fc9c9
Fix error bug for showing mouse over on frameline after removing a layer
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 13 Feb 2011 14:40:04 +0800 |
parents | 0b5ee9c90af7 |
children | 60f2c9a24cdb |
comparison
equal
deleted
inserted
replaced
1354:f92be354ad24 | 1355:f1fa284fc9c9 |
---|---|
107 # | 107 # |
108 def remove_frameline(self, layer_idx): | 108 def remove_frameline(self, layer_idx): |
109 vbox = self._frameline_vbox | 109 vbox = self._frameline_vbox |
110 line = self._framelines[layer_idx] | 110 line = self._framelines[layer_idx] |
111 | 111 |
112 if self._last_active_frameline == line: | |
113 self._last_active_frameline = None | |
114 pass | |
115 if self._last_mouse_over_frameline == line: | |
116 self._last_mouse_over_frameline = None | |
117 pass | |
118 | |
112 hbox = line.parent | 119 hbox = line.parent |
113 vbox.remove(hbox) | 120 vbox.remove(hbox) |
114 del self._framelines[layer_idx] | 121 del self._framelines[layer_idx] |
115 | 122 |
116 for idx in range(layer_idx, len(self._framelines)): | 123 for idx in range(layer_idx, len(self._framelines)): |