0

I want to freeze my program but when I do that and I launch the .exe I have the following message

No module named 'ttkwidgets'

Here the install file

import sys
from cx_Freeze import setup, Executable

base = None
if sys.platform == 'win32':
    base = 'Win32GUI'

options = {
    'build_exe': {
        'includes': 'atexit'
    }
}

executables = [
    Executable('BouclePrincipale.py', base="Win32GUI")
]

setup(name='simple_Tkinter',
      version='0.1',
      description='Sample cx_Freeze Tkinter script',
      executables=executables
      )
Jean-François Fabre
  • 137,073
  • 23
  • 153
  • 219

1 Answers1

0

Well I dowloaded the folder of ttkwidgets and I manualy put into the folder Lib. After that I had plenty other error (sorry I didn't write the error) but I had to add in the script

from tkinter import font 
from tkinter import filedialog

after that I had a problem with PIL and image and I do that

python -m pip install --upgrade pip 
python -m pip install --upgrade Pillow

And when I freeze my program all it's working