From: Jonathan B. <jbr...@ea...> - 2005-03-07 13:11:10
|
On Mon, 2005-03-07 at 12:15 +0000, Hans Fangohr wrote: > Dear all, > > I was trying to delete visual python objects. Following the suggestions > made in this email > http://sourceforge.net/mailarchive/forum.php?thread_id=6392639&forum_id=3591, > > I thought this should be straightforward as follows > > > from visual import * > > x = sphere() > > #window appears, sphere appears in window > > del x #delete x, therefore removing reference to x > > #here I expected the sphere to disappear but this was not the case. > > What am I getting wrong here? It appears you missed the point of the message you are referring to. Visual still owns a reference to the object, which you must destroy first by setting x.visible = False before deleting it. -Jonathan |