Re: cleaning up
Bruce Sherwood <[email protected]>
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <CAFDG03hhZRi2eqLgPeyUuF5_nanOvg9ap-bJJ4ncwb1J=tY76g@mail.gmail.com> |
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. Bruce Sherwood On Mon, Aug 29, 2011 at 1:44 PM, Aaron Mavrinac <[email protected]> wrote: > On Thu, Aug 25, 2011 at 8:04 AM, Ben Axelrod <[email protected]> wrote: > >> 2. is there a way to programatically close the visual python window? > > The visual.ui.display object has a 'visible' property also; setting > display.visible = False closes the window. > > Strangely, however, display.visible.objects continues to refer to all > previously visible objects, yet setting display.visible = True does > not bring them back (and even attempting to manually make them visible > via these references doesn't appear to work). Thus, it is probably > prudent to at least do the above "clearing" if you're going to do > this, as it is evidently leaky otherwise. > > -- > 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