So I've been working a while on a tkinter program that kills windows explorer and pulls up a dialogue box with an image, button, and canvas.
So I got the python script itself to work. But when I try to compile it with cx_Freeze for use on my other 64 bit windows computer, and then run it, nothing happens. No errors, no dialogue messages, nothing. Just a loading animation over the cursor for a few seconds before it stops.
I made a batch file that pauses the application before it finishes in hopes of finding an error that I may have missed:
my-application-name.exe %1
PAUSE
This gave me no info on what might be preventing this program to work.
So my question is, since there is no obvious solution, when a tkinter python application doesn't work at all and behaves like this, where in the code would I look to find the cause of it not working? It has to be in the setup.py file I used for cx_Freeze, since the Python script works without it, right?
Here is my setup.py code used to compile with cx_Freeze:
import sys, os
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
os.environ['TCL_LIBRARY'] =
r'C:\Users\jbond\AppData\Local\Programs\Python\Python36\tcl\tcl8.6'
os.environ['TK_LIBRARY'] =
r'C:/Users/jbond/AppData/Local/Programs/Python/Python36/tcl/tk8.6'
executables = [
Executable('brrf.py', base=base)
]
setup(name='simple_Tkinter',
version='0.1',
description='Sample cx_Freeze Tkinter script',
executables=executables
)
Thanks for any help.