ValueError: Invalid file path or buffer object type: <class 'tkinter.StringVar'>
问题 Here is a simplified version of some code that I have. In the first frame, the user selects a csv file using 'tk.filedialog' and it is meant to be plotted on the same frame on the canvas. There is also a second frame that is capable of plotting the graph in case it is easier to do it across a different frame. Running this version of the code results in the error: "ValueError: Invalid file path or buffer object type: ". I am not sure how to get this code to work without this problem occurring,