comparison pyink/MBScene.py @ 1314:2aa3770f02bf

Fix issue of events for setting cursor of treeview. - comp_dock_base.refresh() would set cursor, it cause an event. But, we don't want it. - The reason of the issue is that MBScene.show() is not monitored. So, we monitor it by move its body to do_show().
author Thinker K.F. Li <thinker@codemud.net>
date Thu, 20 Jan 2011 15:53:00 +0800
parents 94e6594dea59
children ffbbd3aa218d
comparison
equal deleted inserted replaced
1313:cc557ce8e9fa 1314:2aa3770f02bf
352 352
353 self.addNameEditor(hbox) 353 self.addNameEditor(hbox)
354 self.addTweenTypeSelector(hbox) 354 self.addTweenTypeSelector(hbox)
355 pass 355 pass
356 356
357 def show(self): 357 def do_show(self):
358 self.OK = True 358 self.OK = True
359 if not self._root: 359 if not self._root:
360 self._root = self.desktop.doc().root().repr 360 self._root = self.desktop.doc().root().repr
361 pass 361 pass
362 362
385 vbox.pack_start(hbox, expand=False) 385 vbox.pack_start(hbox, expand=False)
386 386
387 self.top.show_all() 387 self.top.show_all()
388 self.last_update = None 388 self.last_update = None
389 return False 389 return False
390
391 def show(self):
392 self.do_show()
393 pass
390 pass 394 pass