Re: cleaning up

Aaron Mavrinac <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <CAJqNogdRwx1oOq-VmrUbhsvr2dtK3uP4mpy5iQBuhEJjw3mnsA@mail.gmail.com>
On Mon, Aug 29, 2011 at 6:24 PM, Bruce Sherwood <[email protected]> wrote:
> I don't understand this description of making a display invisible and
> then visible. What I thought would happen is what does happen: Setting
> display invisible just makes it invisible, doesn't delete it, and then
> later making it visible again makes it visible again, with all of its
> objects intact.

Oh? Could be a bug specific to my setup then (Gentoo Linux, Python
2.7.1, Visual 5.4)? Maybe something at the OpenGL level?

>>> import visual
>>> visual.sphere()
<vis.primitives.sphere object at 0xf4d0a8>
>>> visual.scene.visible = False
>>> visual.scene.visible = True
>>> visual.scene.objects
(<vis.primitives.sphere object at 0xf4d0a8>,)

When I do the above, I end up with a blank window. As you can see,
visual.scene is not deleted and it still has a reference to the
sphere, but I am definitely not seeing a sphere in the window. :)

Let me know if you need any other information from me.

-- 
Aaron Mavrinac
www.mavrinac.com

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.