lccat added the comment: Your output is different because you did not close the file dialog by selecting something and the pressing OK, or pressing cancel before destroying the main window. This is also the case here: Traceback (most recent call last): File "tktest.py", line 6, in <module> filename = tkinter.filedialog.askopenfilename() File "/usr/lib/python3.4/tkinter/filedialog.py", line 375, in askopenfilename return Open(**options).show() File "/usr/lib/python3.4/tkinter/commondialog.py", line 48, in show s = w.tk.call(self.command, *w._options(self.options)) _tkinter.TclError: can't invoke "grab" command: application has been destroyed alloc: invalid block: 0x1d2cda0: a0 1 zsh: abort python tktest.py
However, only the last two lines are relevant here, which you could not reproduce. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22810> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com