Re: About trace - was: 'No module named visual' after compiling

Spiderdab <[email protected]> Mon, 30 Jan 2012 22:44:13 +0100
Newsgroups gmane.comp.python.visualpython.user
Message-ID <1327959853.1640.24.camel@dab-tetra>
On lun, 2012-01-30 at 13:40 -0700, Bruce Sherwood wrote: 
> Making the trail object invisible and then deleting it works fine on
> my Windows machine, so there's definitely something not quite right in
> the Ubuntu environment.
> 
> However, if you are going to turn the curve on and off you shouldn't
> delete the curve. I would suggest the following strategy:
> 
> When you want the curve associated with your object ufo to disappear,
> execute ufo.trail_object.pos = [] to get rid of all the points
> currently in the list of curve points, and execute retain = 0 so that
> for the time being no more points will be added to the curve. Then
> when you want to turn on the trail again, set retain back to 50.
> 
> Bruce Sherwood
Good solution, too.
thanks.


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2