From: Bruce S. <Bru...@nc...> - 2011-08-29 22:24:47
|
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 <mav...@gm...> wrote: > On Thu, Aug 25, 2011 at 8:04 AM, Ben Axelrod <be...@be...> 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 > |