i wrote a Gui program in python3.2. i want to convert my .py program into a windows executable file(.exe).
i googled for it and found py2exe but it only supports 2.7 . is there anyway i can convert my program.
Using cx_Freeze with Python32 to package a Tkinter GUI toolkit
program to an executable file (.exe in Windows OS). Module
cx_Freeze also is available for Unix systems.
Put this setup program and your Tkinter program file into the same
directory. Change the filename in this setup program and also edit
name, version and description in setup() if you so desire.
A directory 'build' is created with a subdirectory 'exe.win32-3.2'
containing all the files needed for distribution including the
.exe file named after the Tkinter program file.
The total distribution has a size of about 13.5 MB
The Python32 version works much better now with tkinter code.
from cx_Freeze import setup, Executable
sys.argv.append("build") # replaces commandline arg 'build'
# change the filename to your program file
filename = "tk_calculator2.py"
base = None
if sys.platform == "win32":
base = "Win32GUI"
name = "Calculator2",
version = "1.0",
description = "cx_Freeze Tkinter script",
executables = [Executable(filename, base=base)])