On Dec 17, 2010, at 9:34 AM, John Fabiani wrote:
> 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?
Depends. If you create a dDialog instance, yes, you have to call
release() when you are done with it. If you use any of the built-in dialogs
(e.g., dabo.ui.areYouSure), it's handled for you.
The normal flow for using a dialog is:
dlg = dDialog()
dlg.show()
<user interacts>
<when they close the dialog, call hide()>
# Get the info from the dialog
val = dlg.getSomeValue()
val2 = dlg.getSomeOtherValue()
# Got all the info; now release it
dlg.release()
-- Ed Leafe
_______________________________________________
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]