Jul-25-2019, 06:27 PM
I just found a way to do it but my attempt uses more lines of code.
Code:
Code:
def audio_file(): global recorded_file recorded_file = filedialog.askopenfile(title='J.E.C. Software Solutions', filetypes=[('Image Files', ['.wav', '.mp3', '.vox'])]) filepath = recorded_file path = Path(filepath) print(path.name)Using this I receive:
expected str, bytes or os.PathLike object, not _io.TextIOWrapper
"Often stumped... But never defeated."