cleaner way to write this?

Paul Rubin http
Wed Oct 25 21:16:09 EDT 2006


Roy Smith <roy at panix.com> writes:
> Isn't this the kind of thing that the new-fangled "with" statement is 
> supposed to solve?

1) that would require rewriting the wx.TextEntryDialog to have an
exit method.

2) It's not necessarily always the case that you want to destroy the
dialog when the function returns.  You might want to keep the dialog
around for some reason.



More information about the Python-list mailing list