From: Kadir H. <kha...@ya...> - 2011-12-11 16:59:51
|
I know we have more strategic problems, but I have a funny small problem with closing (set invisible) the second display. Consider the following simple code: from visual import * d1 = display() d2 = display() b1 = box(color=(1,0,0), display=d1) b2 = box(color=(0,0,1), display=d2) tl = label(text="Which display is selected?") sd = tl.display sd.mouse.getclick() sd.visible = 0 The label text appears on the second display. Upon click, second display should be closed. It does, but then Vpython crashes. There is no problem with closing the first display. I am running on 5.50 Am I missing something? Kadir |