[New-bugs-announce] [issue38974] using filedialog.askopenfilename() freezes python 3.8

Daniel Preston report at bugs.python.org
Wed Dec 4 14:44:42 EST 2019

New submission from Daniel Preston <danpreston24 at gmail.com>:

I am using Tkinter in my program, and at a point I use a button to open a file by running a function with the following code:
def UploadAction(event=None):
     global filename
     filename = filedialog.askopenfilename()
     filename = [filename]
return filename
However, when I run this function, it causes Python to freeze. Apparently there have been bugs like this before in previous versions, and this wasn't a problem on 3.7, which makes me suspect that this is a bug rather than a fault on my end. Would you be able to release an update to fix this bug? Thanks.

components: Windows
messages: 357819
nosy: Daniel Preston, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: using filedialog.askopenfilename() freezes python 3.8
versions: Python 3.8

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list