Search code examples
pythontkinteropenfiledialog

Why tkinter ask open file has a low resolution?


In this picture you can see that the left dialog has a lower resolution then then right one.

enter image description here

Why folders are different?

I'm working with Python 3 and here's my code

from tkinter.filedialog import askopenfilename

askopenfilename(
    initialdir = "/",
    title = "Select a File",
    filetypes = (("Text files", "*.txt*"), ("all files", "*.*"))
)

Solution

  • I finally found the answer. You just have to import the pyautogui module into program.

    import pyautogui