John,
I do not know how you change the pos or axis of your arrow but,
let's assume:
aa = arrow(pos=pos, axis=axis)
then, if you change pos and axis like:
aa.pos = newpos
aa.axis = newaxis
the position and the axis of the original (one and only) arrow should be
changing as you like, without needing any delete / define.
Kadir
________________________________
From: John Doe <joh...@gm...>
To: vis...@li...
Sent: Sun, November 14, 2010 9:37:03 PM
Subject: Re: [Visualpython-users] Visualpython-users Digest, Vol 54, Issue 4
Bruce,
I need to delete or clear the arrow because everytime I try to change
the pos or axis, another (a new) arrow appears in that position. So
then I have several arrows; I only want one. This is why I need a
clear or delete function for the arrow.
John
On 11/13/10, vis...@li...
<vis...@li...> wrote:
> Send Visualpython-users mailing list submissions to
> vis...@li...
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
> or, via email, send a message with subject or body 'help' to
> vis...@li...
>
> You can reach the person managing the list at
> vis...@li...
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Visualpython-users digest..."
>
>
> Today's Topics:
>
> 1. Re: VPython clear drawing (Bruce Sherwood)
> 2. VPython - Slackware 13.1 (Sergio Mira)
> 3. Re: VPython - Slackware 13.1 (Bruce Sherwood)
> 4. install glitch and some code (kirby urner)
> 5. Re: install glitch and some code (Bruce Sherwood)
> 6. Re: install glitch and some code (kirby urner)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 11 Nov 2010 20:03:37 -0700
> From: Bruce Sherwood <bas...@nc...>
> Subject: Re: [Visualpython-users] VPython clear drawing
> To: vis...@li...
> Message-ID:
> <AAN...@ma...>
> Content-Type: text/plain; charset=ISO-8859-1
>
> It sounds like what you want to do is not delete the arrow but simply
> change its pos and/or axis and/or color attributes. There is no need
> to delete the arrow.
>
> Bruce Sherwood
>
> On Thu, Nov 11, 2010 at 6:34 PM, John Doe <joh...@gm...> wrote:
>> I have been searching the VPython documentation, and have not been
>> able to find a method to clear drawings.
>>
>> For example, if I were to draw the arrow from the documentation
>> (http://vpython.org/contents/docs/visual/arrow.html), is it possible
>> for me to clear the drawing and plot another arrow at another
>> coordinate? ?Currently, I have been only able to plot arrows on-top of
>> each other.
>>
>> If not, is there a visual.pointer(clear) or visual.pointer(clear)?
>>
>> Thanks,
>> John
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Visualpython-users mailing list
Vis...@li...
https://lists.sourceforge.net/lists/listinfo/visualpython-users
|