From: Bruce S. <ba...@an...> - 2001-11-05 19:14:16
|
Maybe you want to set scene.exit = 0? From the windows section of the VPython reference manual: "If sceneb.exit = 0, the program does not quit when the close box of the sceneb display is clicked. The default is sceneb.exit = 1, in which case clicking the close box does make the program quit." If there is only one window at all times, but the contents change, you could make the old objects invisible and create new ones in the same window. On a somewhat related issue, note that sceneb.visible = 0 makes the window invisible. Bruce Sherwood --On Monday, November 05, 2001 12:46 PM -0600 Young-Jin Lee <yl...@ui...> wrote: > Is there any way just closing a display window? > I don't want to quit the whole program (or VPython shell) when the > closing icon is pressed. I want to repeatedly create a different display > window in one application so that I need to be able to close the display > window when the closing icon is clicked. I read through the display > window control page of reference manual, but there is no information. |