comparison pyink/domview_ui.py @ 1320:6090be010927

Fix issue of selecting frames - User can not switching frames any more after user switching component. - It is caused by frameline_stack.remove_all_framelines() which reset active frame callback. - It is fixed by stoping it.
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 22 Jan 2011 23:32:21 +0800
parents 9ab8d50dcf7e
children ffbbd3aa218d
comparison
equal deleted inserted replaced
1319:ab21c148b3c6 1320:6090be010927
116 for idx in range(layer_idx, len(self._framelines)): 116 for idx in range(layer_idx, len(self._framelines)):
117 self._framelines[idx].layer_idx = idx 117 self._framelines[idx].layer_idx = idx
118 pass 118 pass
119 pass 119 pass
120 120
121 ## \brief Remove all framelines from the stack.
122 #
121 def remove_all_framelines(self): 123 def remove_all_framelines(self):
122 num = len(self._framelines) 124 num = len(self._framelines)
123 125
124 for idx in range(0, num): 126 for idx in range(0, num):
125 line = self._framelines[idx] 127 line = self._framelines[idx]
128 pass 130 pass
129 131
130 self._framelines = [] 132 self._framelines = []
131 self._last_mouse_over_frameline = None 133 self._last_mouse_over_frameline = None
132 self._last_active_frameline = None 134 self._last_active_frameline = None
133 self._active_frame_callback = None
134 pass 135 pass
135 136
136 def init_framelines(self): 137 def init_framelines(self):
137 if self._framelines!= None: 138 if self._framelines!= None:
138 return 139 return