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 onglobal filenamefilename = 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.
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.