Message301032
This is purely a tkinter issue. Windows people can ignore this.
Your problem was a result of your program error, of not keeping a reference to Tk(), combined with tkinter's _default_root 'feature'.
The solution you report in your answer, 'root = tkinter.Tk()', later followed by an explicit 'root.destroy()' is *the* correct way to do what you want. I explained further in my answer.
There is no way for askopenfilename to know that you are done with root or tkinter._default_root. |
|
Date |
User |
Action |
Args |
2017-08-30 16:52:57 | terry.reedy | set | recipients:
+ terry.reedy, paul.moore, tim.golden, zach.ware, serhiy.storchaka, steve.dower, psiehr |
2017-08-30 16:52:57 | terry.reedy | set | messageid: <1504111977.75.0.247855049184.issue31309@psf.upfronthosting.co.za> |
2017-08-30 16:52:57 | terry.reedy | link | issue31309 messages |
2017-08-30 16:52:57 | terry.reedy | create | |
|