mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
26 lines
759 B
Python
26 lines
759 B
Python
# A simple setup script to create an executable running wxPython. This also
|
|
# demonstrates the method for creating a Windows executable that does not have
|
|
# an associated console.
|
|
#
|
|
# wxapp.py is a very simple "Hello, world" type wxPython application
|
|
#
|
|
# Run the build process by running the command 'python setup.py build'
|
|
#
|
|
# If everything works well you should find a subdirectory in the build
|
|
# subdirectory that contains the files needed to run the application
|
|
|
|
import sys
|
|
|
|
from cx_Freeze import setup, Executable
|
|
|
|
base = None
|
|
if sys.platform == "win32":
|
|
base = "Win32GUI"
|
|
|
|
setup(
|
|
name = "hello",
|
|
version = "0.1",
|
|
description = "Sample cx_Freeze wxPython script",
|
|
executables = [Executable("wxapp.py", base = base)])
|
|
|