Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Jack Jansen
On 20-mrt-2007, at 17:30, Alfred Morgan wrote: > From: Stani's Python Editor <[EMAIL PROTECTED] > > 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 > > Like o

Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Kent Quirk
Jack Jansen wrote: > On 20-mrt-2007, at 17:30, Alfred Morgan wrote: > >> From: Stani's Python Editor <[EMAIL PROTECTED] > >> 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/p

Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Kevin Walzer
Kent Quirk wrote: > Jack Jansen wrote: >> On 20-mrt-2007, at 17:30, Alfred Morgan wrote: >> >>> From: Stani's Python Editor <[EMAIL PROTECTED] > >>> 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 >>>

Re: [Pythonmac-SIG] Display icons from Carbon?

2007-03-23 Thread Christopher Barker
I don't know how to do this, but I do know: > Has anyone done this > successfully from one of the GUI toolkits, say wxPython wxPython does not support OS-X icon bundles. It certainly good, an icon bundle class does exist in wx, but no one has written the code for the OS-X version. -Chris --

Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Christopher Barker
Kent Quirk wrote: > If you're going to go through the pain, why not just use py2app, which > does it for you? Because Py2App doesn't support "applets". That is, something that looks and acts like an application, but DOESN'T bundle up all the Python stuff. My vision of an "applet" would be a py2

Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Alfred Morgan
On 3/23/07, Jack Jansen <[EMAIL PROTECTED]> wrote: I was very surprised when I saw this, I'd never seen this before. It's true, This is not the "proper" use of app framework but it was quick and dirty and worked for me. I don't like the answer "just drop it in this magic box and it will just

Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Jack Jansen
On 23-Mar-2007, at 22:27 , Alfred Morgan wrote: #!/bin/sh cat > /tmp/alfred_hw.py << . from Tkinter import Tk, Label r=Tk() Label(r, text="Hello World").pack() r.mainloop() . mkdir ~/Desktop/alfred_hw.app cat > ~/Desktop/alfred_hw.app/alfred_hw << . #!/usr/bin/env pythonw /tmp/alfred_hw.py . c

Re: [Pythonmac-SIG] How to create a desktop alias to run a python file?

2007-03-23 Thread Nicholas Riley
On Sat, Mar 24, 2007 at 12:24:08AM +0100, Jack Jansen wrote: > Is anyone else familiar with such simple .app bundles? That's how the various NeXT OSes - and OS X Server 1.x, IIRC - did it. (I did just try sticking the OS X Server 1.2 CD into a Mac running Tiger, but couldn't mount the Apple_Rhapso