On 7-Apr-08, at 06:57 , Henning Hraban Ramm wrote: > 2008/4/7, Kevin Horton <[EMAIL PROTECTED]>: >> 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.
I don't know why, but this does not work for me. In my account nothing happens, and no messages in Console.app giving a clue why. I restarted the computer, and created a brand new user account, with admin priviledges. In that account, if I double the script file, or an alias, Terminal starts, I see that it runs "/path/to/my script ; exit;". The wxpython application does not start. It does run normally if I start it manually from the command line in Terminal. I tried doubleclicking the script file on another Mac, and I get the identical result as I did on the fresh user account on the first Mac - i.e. the script is called, but immediately exits, and the application does not start. It is quite possible that I have done something non-standard in my script that is at fault here, but I have no clue on what to look for. > There's also Platypus to wrap any script, see http:// > www.sveinbjorn.org/platypus I tried that on both Macs - the Platypus wrapper application starts, but the wxpython application does not start. > The "big" solution is py2app. I was hoping to find a smaller solution. I took a quick look at the py2app docs, and was quite befuddled. I have to assume that I have done something very non-standard either in my script, or my environment. But I have no idea what to look for. I also received a private e-mail suggesting a simple bundling solution. I'll try tha t and report back if it works. Thanks, -- Kevin Horton Ottawa, Canada _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig