CustomTkinter
CustomTkinter copied to clipboard
ModuleNotFoundError: No module named 'tkinter.filedialog'
Try to puck the .exe file with PyInstaller. And get the error ModuleNotFoundError: No module named 'tinter.filedialog' when try to execute app. I associate extra library reference before export. How to fix it?
@JLightMedia Import like this; from tkinter import filedialog
@Akascape - This is an issue with CTk, and it's not advised to change the module's files yourself (locally). I'll make a PR if one doesn't exist already.
EDIT: Unable to reproduce...? In a interactive Python session, I tried importing the file dialog with from tkinter import filedialog and import tkinter.filedialog as filedialog. Both worked.
@JLightMedia - While @Akascape's workaround does work, could you share the details of your Python and customtkinter version? I'm on macOS 12.6.7, looks like you are on Windows 11.
Hi every one! It helped! Thank you so much.
Hi, I'm having the same problem. I tried to copy both(below) to the "init.py" under "customtkinter" folder file manually but the issue remain: from tkinter import filedialog import tkinter.filedialog as filedialog
please help me.