Creating an .exe with Tkinter involved

A

Alex Bryan

I know this is possible so someone out there should be able to help
me! Okay, I have a program that uses Tkinter, and BeautifulSoup. I
don't think it should be a problem. I want to create an exe of it. I
have py2exe but I don't really know how to work it. I read their
tutorial thing and did a setup that looked something like this:

from distutils.core import setup
import py2exe

setup(console['myFunProgram.py'])

(isn't really called myFunProgram)

This seems terribly wrong however because... it isn't a console app.
So I am wondering if anyone can show me how or point me in the right
direction to a place where I can learn how to do this. I would
appreciate it!
 
F

Fouff

Alex Bryan a écrit :
I know this is possible so someone out there should be able to help me!
Okay, I have a program that uses Tkinter, and BeautifulSoup. I don't
think it should be a problem. I want to create an exe of it. I have
py2exe but I don't really know how to work it. I read their tutorial
thing and did a setup that looked something like this:

from distutils.core import setup
import py2exe

setup(console['myFunProgram.py'])

(isn't really called myFunProgram)

This seems terribly wrong however because... it isn't a console app. So
I am wondering if anyone can show me how or point me in the right
direction to a place where I can learn how to do this. I would
appreciate it!

Hi.

If your program isn't a concole one, maybe should you rename it .pyw and then
in your setup.py file, replace the line
> setup(console['myFunProgram.py'])
by this one
setup(windows=["myFunProgram.pyw"])

I use it under MS windows (I don't know if it is your case too).

You will find more informations here http://www.py2exe.org/index.cgi/ListOfOptions
and more generally at http://www.py2exe.org/


Fouff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top