pueden ayudarme?.
quisiera exportar solo lo que se necesita para ejecutarlo, ya que lo exporta con un peso fenomenal.
Código
[/code]
# estas son las librerias que debo incluir from tkinter import * from ttkthemes import themed_tk as tk from tkinter import ttk from belfrywidgets import ToolTip import math from PIL import Image, ImageTk from cx_Freeze import setup, Executable # <added> import os.path PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__)) os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tcl8.6') os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') # </added> base = None if sys.platform == 'win32': base = 'Win32GUI' executables = [ Executable('nuevo - copia.py', base=base, icon ="icono.ico") ] # <added> options = { 'build_exe': {'packages':["ttkthemes","belfrywidgets","math","PIL"], 'include_files':[ os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tk86t.dll'), os.path.join(PYTHON_INSTALL_DIR, 'DLLs', 'tcl86t.dll'), "icono.ico", ], }, } # </added> setup(name = 'Inventario', version = '0.1', description = 'Sample cx_Freeze Tkinter script', # <added> options = options, # </added> executables = executables ) [code=python]