robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
455 stars 114 forks source link

destroy filebox if none value returned #140

Closed kr-ish closed 5 years ago

kr-ish commented 6 years ago

Currently, if the file open box is closed by hitting the 'x' or 'Cancel' buttons, the box returns None but doesn't destroy the tk object. This commit fixes that.

Not closing the tk object cases an issue when using tk in conjunction with matplotlib, as described here.

I don't believe any additional testing code is required, do let me know if that is not the case or if I should request this change in a different manner.

Thank you!