I am using tkinter.filedialog.askopenfilename in Python to select a file. How do I change the font size for the file list displayed? I have found answers on StackOverflow on how to change the font of some items on the display (for example here), but do not know the name of the ttk widget that is used for the file list.
askopenfilenamegives that kind of control. The answer to that linked question which attempts to use attk.Stylewouldn't work becausefiledialogs have nothing to do withttkwidgets (note how theStylecreated in never used after it's configured). You should be able to do what you want by creating your own dialog widget that internally used atkinter.Listboxwhich does support afontoption.TkDefaultFontchanges the font of the buttons and labels around the file list, but does not affect the file list itself. On my high density display, the file list uses a tiny font, I need to stick my nose in the monitor to read it.