Was reading the wxPython list an ran across the following:
> While we're on the subject, what about dialogs? Do I need to destroy
> them after `EndModal`?

>Yes.  Dialogs are different because the C++ part of the window objects 
>in wxPython  hold a reference to the Python object, so you need to call 
>Destroy() to deallocate the C++ object and break the cycle.  Most window 
>objects are owned by their parents and are destroyed automatically when 
>the parent is, (or in the case of frames they destroy themselves when 
>closed) but for dialogs they are meant to be used after they are closed 
>(for accessing data values, etc.) so you have to explicitly destroy them.

-- 
>Robin Dunn
>Software Craftsman

I have never worried about closing a modal dialog using Dabo.  I always 
believed that python would take care of it because of the scope.  But Robin's 
response makes me wonder if my dialogs should be deleted.  Should I have to 
worry about the deleting the instance of a Dabo dialog?

Johnf
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to