Reputation: 177
I have tried for hours now to figure out why the askopenfilename method from tkinter's filedialog isn't showing me any files to select. All I get is this empty window below, no matter what I click, I just get a spinner, there is nothing that I can click on to select a file. I have tried every single google search that has something along the lines of:
from tkinter import filedialog
from tkinter import *
root = Tk()
root.filename = filedialog.askopenfilename(tried everything here)
This is Python 3.8, CentOS 8, I have even dropped SElinux for a moment, I am running this machine in vmware workstation 15 pro (I am not sure if this is causing it). Has anyone had this issue before?
Upvotes: 0
Views: 220
Reputation: 177
I figured out that I have to enable Accelerate 3D graphics in the guest VM, after this, it started working. I arrived at this conclusion after figuring out that I could not even put a simple label in the window object, it was clear to me at that point that the issue had nothing to do with python or the tkinter module. It works now
Upvotes: 1