On 19 Mar, 2007, at 17:35, Stani's Python Editor wrote:

> Hi,
> This is probably very easy, but I don't find how to do it. I want to
> execute this command if an user clicks on the icon of the alias on the
> desktop:
>
> /usr/bin/pythonw path/gui.pyw

That short answer is that you don't really want this :-). What you  
seem to want is to create a clickable application and there are  
several ways to do that. The best way is use py2app to build a full  
application bundle, another alternative is using the Applet Builder  
in MacPython (but Apple doesn't ship this tool, so you cannot use  
this with /usr/bin/pythonw).

Py2app can be found here: http://www.python.org/pypi/py2app. It  
includes a number of examples, including some wxPython ones.

Ronald

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to