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.
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!