From: Hans F. <H.F...@so...> - 2005-03-07 13:46:18
|
Dear Jonathan, >> 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. I did indeed ;) Thank you for clearing this up. Hans > > -Jonathan > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |