python / psf-infra-meta

Meta-repository for PSF backed or managed systems. Created mainly for the issue tracker :)
11 stars 7 forks source link

filedialog.askopenfilename() causes python 3.8.8 to freeze #50

Closed Shtarkbochur closed 4 years ago

Shtarkbochur commented 4 years ago

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): #allow the user to select a file, then define it as list to prevent issues with file later on 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.