[Pythonmac-SIG] Problem with applets on MacPython

Christopher Barker Chris.Barker at noaa.gov
Fri Jan 13 23:59:11 CET 2006


> Your programs are probably behaving correctly.  What's happening is  
> that none of those application building tools have an option that  
> attaches a console to them, so your simple console interaction isn't  
> going to work. 

Your output is probably going to the "Console" open that up and you 
should see your output.

> In order to make an applet with that sort of console,  
> you'll need to use a windowing toolkit such as wxPython, Tkinter, or  
> PyObjC.

Which is a bit much for a beginner.

I'd get started with using the unix terminal to start to learn and run 
python. You really don't want to have to build your app into a App 
bundle while testing it anyway.

Start up the "terminal" app. Use "cd" to put yourself in the folder 
(directory) that your python script is in. Then type:

python MyScriptName.py

and it should run. You're off and running!

If none of that makes sense, then look for tutorials on the web about 
using the unix command line in OS-X--there's lots of them, and it's well 
worth learning a bit about.

A utility I find invaluable is "Open terminal Here" -- google it and you 
should find it.

by the way, there are a number of IDEs for python on OS-X, and last I 
heard, none of them were really bug-free enough to use for a newbie. Has 
that changed?

How's SPE on OS-X now?
How's PyOxide coming along?
etc.

If you don't mind spending a little money, WingIDE and Komodo are 
reported to work well. WingIDE has a non-commercial version that's 
pretty cheap.

Or you can use the command line and an editor--that's served me well for 
years. Just make sure you get a good, python-aware editor, I'll leave 
that up to you to research!

good luck,

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer
                                     		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list