[Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-25 Thread Rodney Somerstein
I downloaded Python 2.5 yesterday and am having a problem with the included 
IDLE. If I launch IDLE by double-clicking, it shows up in the task bar, then 
immediately goes away. I see no windows, menus, etc. for the program. If I type 
IDLE at the command line, IDLE 1.2 launches with no problem. The icon in the 
task bar appears to be Python Launcher in that case, not IDLE.

If I launch the IDLE.app from MacPython 2.4 by double-clicking, it launches 
IDLE 1.1.3 with no problems.

Does anyone have any suggestions? Is IDLE.app broken under MacPython 2.5? While 
I can launch it from terminal, it is definitely more convenient to just 
double-click. I am using IDLE because I have been working my way through the 
O'Reilly Learning Python book at a glacial pace over the last year or more and 
it is nice to have a simple Python-aware interactive editor.

-Rodney
-- 

Rodney SomersteinAlways remember that you are unique...
[EMAIL PROTECTED]   just like everyone else.
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


Re: [Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-25 Thread Ronald Oussoren
 
On Wednesday, October 25, 2006, at 01:07PM, Rodney Somerstein <[EMAIL 
PROTECTED]> wrote:

>I downloaded Python 2.5 yesterday and am having a problem with the included 
>IDLE. If I launch IDLE by double-clicking, it shows up in the task bar, then 
>immediately goes away. I see no windows, menus, etc. for the program. If I 
>type IDLE at the command line, IDLE 1.2 launches with no problem. The icon in 
>the task bar appears to be Python Launcher in that case, not IDLE.
>
>If I launch the IDLE.app from MacPython 2.4 by double-clicking, it launches 
>IDLE 1.1.3 with no problems.
>
>Does anyone have any suggestions? Is IDLE.app broken under MacPython 2.5? 
>While I can launch it from terminal, it is definitely more convenient to just 
>double-click. I am using IDLE because I have been working my way through the 
>O'Reilly Learning Python book at a glacial pace over the last year or more and 
>it is nice to have a simple Python-aware interactive editor.

IDLE works for me. Could you tell me more about the version of OSX you're using 
(and if 10.4, if you're on intel or  ppc).


For the record, if you are running 10.3.9: IDLE uses Tk for its GUI, you'll 
have to download and install that seperately: 
http://tcltkaqua.sourceforge.net/

This doesn't seem to be a problem for you as launching IDLE from the 
command-line works right.

Ronald

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


Re: [Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-25 Thread rodneys
Ronald Oussoren wrote:
> IDLE works for me. Could you tell me more about the version of OSX you're
> using (and if 10.4, if you're on intel or  ppc).
>
>
> For the record, if you are running 10.3.9: IDLE uses Tk for its GUI,
> you'll have to download and install that seperately:
> http://tcltkaqua.sourceforge.net/
>
> This doesn't seem to be a problem for you as launching IDLE from the
> command-line works right.

I am using the latest update to Mac OS X (I believe that is 10.4.8). This
is on a PowerBook G4 1.5, so PPC, not Intel.

As you state, it doesn't appear to be Tk, since everything starts from the
command line. When I launch the 2.4 IDLE (version 1.1.3) by
double-clicking, I get a console window which opens in addition to the
IDLE window. When I select this, the menus change to show that I am using
Tk. I don't see this additional window when launching the new IDLE from
the command line. Does this shed any light on the problem?

Thanks,

-Rodney

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


Re: [Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-25 Thread Ronald Oussoren
 
On Wednesday, October 25, 2006, at 02:00PM, <[EMAIL PROTECTED]> wrote:

>Ronald Oussoren wrote:
>> IDLE works for me. Could you tell me more about the version of OSX you're
>> using (and if 10.4, if you're on intel or  ppc).
>>
>>
>> For the record, if you are running 10.3.9: IDLE uses Tk for its GUI,
>> you'll have to download and install that seperately:
>> http://tcltkaqua.sourceforge.net/
>>
>> This doesn't seem to be a problem for you as launching IDLE from the
>> command-line works right.
>
>I am using the latest update to Mac OS X (I believe that is 10.4.8). This
>is on a PowerBook G4 1.5, so PPC, not Intel.

That's the same as my laptop. 

>
>As you state, it doesn't appear to be Tk, since everything starts from the
>command line. When I launch the 2.4 IDLE (version 1.1.3) by
>double-clicking, I get a console window which opens in addition to the
>IDLE window. When I select this, the menus change to show that I am using
>Tk. I don't see this additional window when launching the new IDLE from
>the command line. Does this shed any light on the problem?

The console window is a Tk misfeature. The 2.5 version of IDLE contains some 
code to close this console window.

Could you open Console.app, clear the log and then try to start IDLE again? 
Hopefully IDLE runs into a problem that gets written to the console log.

Ronald

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


Re: [Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-25 Thread Christopher Barker
While we're at it, if all you want is a Python-aware editor -- then 
there area a lot of other (better?) options. Scan the archives of this 
list for suggestions. A few:

BBEdit (TextWrangler?)
Eclipse
SPE
Jedit
ScrIDE


Assorted *nix editors: emaca, VIm, etc, etc.

or look here:

http://wiki.python.org/moin/PythonEditors

-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

[EMAIL PROTECTED]
___
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig


[Pythonmac-SIG] Saving a file???

2006-10-25 Thread Tom Weir
Hi All,

I'm trying to create and save a new OmniOutliner doc, but I'm having  
some trouble trying to figure out what to pass as the _in parameter.  
Any suggestions? A script snippet is below.

Thanks,

Tom

from appscript import app,k

oo = app("OmniOutliner")
d = oo.documents.end.make(new=k.document)
#...
#add rows, etc...
#...

#newFile doesn't exist yet, so the following doesn't work:
#from Carbon.File import FSSpec
#newFile = FSSpect("/tmp/aNewFile")
oo.save(d,in_=newFile)

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


Re: [Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-25 Thread Rodney Somerstein
Ronald Oussoren wrote:

>Could you open Console.app, clear the log and then try to start IDLE 
>again? Hopefully IDLE runs into a problem that gets written to the 
>console log.

Here is what I see when I double-click on IDLE:

Traceback (most recent call last):
   File "/Applications/MacPython 
2.5/IDLE.app/Contents/Resources/idlemain.py", line 27, in 
 main()
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/PyShell.py",
 
line 1393, in main
 macosxSupport.setupApp(root, flist)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/macosxSupport.py",
 
line 110, in setupApp
 hideTkConsole(root)
   File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/idlelib/macosxSupport.py",
 
line 26, in hideTkConsole
 root.tk.call('console', 'hide')
_tkinter.TclError: invalid command name "console"

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


Re: [Pythonmac-SIG] IDLE and MacPython 2.5

2006-10-25 Thread David Worrall
For what it' worth, perhaps to save you some time, I recently spent a  
day evaluating
these tools. Horses for courses, but for me:
TextWrangler is a freebie BBEditLite - a very nice word-processor  
which is keyword aware;
SPE is a full-blown development environment which includes wxglade  
interface to wxwindows
I found it difficult to 'grock' quickly but it could be good
ScrIDE is 1/2 way between.

I opted for ScrIDE - it's simple to use (ie no manual necessary) and  
stable. + using wxglade indpendently for
wxwidget development.
My config: intel OSX 10.4.8 MacPython 2.4.3

If anyone's using MacPython + wxglade into  scrIDE and can report it  
AOK I'd be pleased to hear.

David

On 26/10/2006, at 2:13 AM, Christopher Barker wrote:

> While we're at it, if all you want is a Python-aware editor -- then
> there area a lot of other (better?) options. Scan the archives of this
> list for suggestions. A few:
>
> BBEdit (TextWrangler?)
> Eclipse
> SPE
> Jedit
> ScrIDE
>
>
> Assorted *nix editors: emaca, VIm, etc, etc.
>
> or look here:
>
> http://wiki.python.org/moin/PythonEditors
>
> -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
>
> [EMAIL PROTECTED]
> ___
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>

___
experimental polymedia: www.avatar.com.au
Sonic Communications Research Group,
University of Canberra:  www.canberra.edu.au




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