[Pythonmac-SIG] Double-clickable wxpython application?

Henning Hraban Ramm hraban at fiee.net
Mon Apr 7 12:57:16 CEST 2008


2008/4/7, Kevin Horton <khorton01 at rogers.com>:
> I've created a small wxpython application to perform a particular
>  function that my wife wants.  It uses the standard Apple python and
>  wxpython, and works great if I start it from Terminal.app.  But, she
>  is not keen on using the command line, so I hope to find a way so she
>  can double click on something to start this application.  I've tried
>  AppleScript, and I've tried to save a Terminal.app command file, ,
>  and Platypus, but none of them has worked, quite probably because I
>  haven't yet found the magic hints on what I need to do to make this
>  work.
>
>  What are the simplest ways to make a double-clickable interface to a
>  wxpython application?  I don't need to actually include python or
>  wxpython in the application, as they are already resident on her
>  computer.

Just put an alias to your python file on the Desktop.
On doubleclick it starts Terminal, but it works.

There's also Platypus to wrap any script, see http://www.sveinbjorn.org/platypus

The "big" solution is py2app.


Greetlings, Hraban


More information about the Pythonmac-SIG mailing list