Skip to content

Instantly share code, notes, and snippets.

@D3f0
Created July 7, 2011 14:54
Show Gist options
  • Save D3f0/1069686 to your computer and use it in GitHub Desktop.
Save D3f0/1069686 to your computer and use it in GitHub Desktop.
Crear un ejecutable para windows
# A simple setup script to create an executable using PyQt4. This also
# demonstrates the method for creating a Windows executable that does not have
# an associated console.
#
# PyQt4app.py is a very simple type of PyQt4 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 = "simple_PyQt4",
version = "0.1",
description = "Sample cx_Freeze PyQt4 script",
executables = [Executable("main.pyw", base = base)])
@D3f0
Copy link
Author

D3f0 commented Jul 7, 2011

El base es para que no muestre una shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment