Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » Python

Creating an .exe with Tkinter involved

 
Jump to:  
 
Alex Bryan
PostPosted: Thu Jul 03, 2008 6:51 am    Post subject: Creating an .exe with Tkinter involved
       
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!
 

 
Fouff
PostPosted: Thu Jul 03, 2008 7:34 am    Post subject: Re: Creating an .exe with Tkinter involved
       
Alex Bryan a écrit :
Quote:
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
Quote:
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 LINK
and more generally at LINK


Fouff
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

długopisy reklamowe działki budowlane odzież dziecięca śmieszne teksty WebCatalog Stron - wielkopolskie