Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11680

Re: How to package a gui with py2exe

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <vlastimil.brom@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.082
X-Spam-Evidence '*H*': 0.84; '*S*': 0.00; 'script,': 0.07; 'tkinter': 0.09; 'gui': 0.13; 'subject:package': 0.16; 'to:name:python-list': 0.18; 'header:In-Reply-To:1': 0.22; 'received:209.85.212.46': 0.23; 'received:mail-vw0-f46.google.com': 0.23; 'wonder': 0.23; 'code': 0.25; 'url:mailman': 0.28; 'message-id:@mail.gmail.com': 0.29; 'thanks': 0.30; 'hi,': 0.32; 'there': 0.33; 'to:addr:python- list': 0.33; 'instead': 0.33; 'url:listinfo': 0.33; 'received:209.85.212': 0.34; 'project': 0.34; 'subject:How': 0.35; 'url:python': 0.36; 'something': 0.37; 'some': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'subject:with': 0.39; 'to:addr:python.org': 0.39; 'setup': 0.40; 'more': 0.60; 'your': 0.61; 'url:index': 0.61; 'dedicated': 0.62; 'url:cgi': 0.64; 'details': 0.65
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=tp7vIMkerlKPKZumfxicmfEuYtZwKuEjDn8ZHF9uzBY=; b=Wvc9sBAByFcg6arJ7XbGAJsuWLq3l+NlZHevoNo2h+ZdZcUnt6mYN9yZyen7o14zT5 M+BDcuQcnXQOpVwi9VrAt7RGFk+70hRd/zLUFWeJ/+qK9Iwaiem1yFO3WX95smhAvwV4 rWHalOLX5Akefk59aaX32gKZBldbs4dagKFIs=
MIME-Version 1.0
In-Reply-To <CAH1jUHDyCB2MHRRtOwSdj_2CPqQaBGYzvbLGd9r=Ak7Res13HA@mail.gmail.com>
References <CAH1jUHDyCB2MHRRtOwSdj_2CPqQaBGYzvbLGd9r=Ak7Res13HA@mail.gmail.com>
Date Wed, 17 Aug 2011 14:44:07 +0200
Subject Re: How to package a gui with py2exe
From Vlastimil Brom <vlastimil.brom@gmail.com>
To python-list <python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.126.1313585049.27778.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1313585049 news.xs4all.nl 23913 [2001:888:2000:d::a6]:39334
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:11680

Show key headers only | View raw


2011/8/17 Benji Ara. <benjokal@gmail.com>:
> Hello
> I wonder how you package a Tkinter gui with py2exe?
> Thanks
> Benji
>
>
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>

Hi,
check the necessary steps on the py2exe homepage
http://www.py2exe.org/index.cgi/Tutorial

in your setup script, you have to use something like the following for
a gui app:

setup(windows=["gui_hello.py"])

instead of console in the sample code
setup(console=['hello.py'])

For more details there are some dedicated pages on the project wiki:
http://www.py2exe.org/index.cgi/FrontPage

hth,
   vbr

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: How to package a gui with py2exe Vlastimil Brom <vlastimil.brom@gmail.com> - 2011-08-17 14:44 +0200

csiph-web