On Mon, Nov 14, 2011 at 7:33 PM, Terry Brown <[email protected]> wrote:

>> When I try the above, I see a window appear and then immediately
>> disappear.  Is there something else I need to do in order to keep the
>> window around?
>
> When the script exits the sole reference to the window, w, ceases to
> exist, so the window is destroyed (garbage collected).
>
> You could do
> c.brian_test_w = w
>
> as the last line to keep a reference alive.

Thanks for the question, and response.  I've made a not to add this to
the scripting chapter.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to