I want to generate for Windows platform the executable file of my Python GUI application.
- I'm using two .py OO scripts
- The first script (processcls.py) contains this header:
from lxml import html
from urllib import urlopen
import os, re, sys, time
- The second script contains this header:
from processcls import *
from Tkinter import *
import Queue, threading, tkFileDialog, ttk, tkMessageBox, win32clipboard
- And this is my py2exe script. The problem is that I can't see any GUI created. So I don't clear know where is my mistake in the code.
from distutils.core import setup
import py2exe
setup(
name='MyApplic',
author='amazon',
author_email='[email protected]',
windows=[
{
'script':"init.py",
'uac_info': "requireAdministrator","icon_resources": [(1, "favicon.ico")]
}
],
options=
{
'py2exe':{
'includes': ['lxml.etree', 'lxml._elementpath', 'gzip', 'processcls'],
'packages': ['lxml', 'urllib', 'Tkinter'],
'bundle_files': 1,
'compressed' : True
}
},
zipfile = None
)
Any suggestions? I'm using Tkinter as a GUI gramework and Python 2.7
Thanks Migrome
python setup.py py2exeare there any errors?