change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
I am using mac with python 2.5.2 and IDLE verison 1.2.2. in the help it
states I can change he text coloring by using Configure IDLE but I not
sure what this is. It's not sn the menu, running Configure does nothing. How
do I change the color (text and background)
Thanks
Vincent Davis
--
http://mail.python.org/mailman/listinfo/python-list


Re: change syntax coloring in IDLE

2009-01-27 Thread Ned Deily
In article 
77e831100901270950i6b0b510chf80a495a65ca9...@mail.gmail.com,
 Vincent Davis vinc...@vincentdavis.net wrote:
 I am using mac with python 2.5.2 and IDLE verison 1.2.2. in the help it
 states I can change he text coloring by using Configure IDLE but I not
 sure what this is. It's not sn the menu, running Configure does nothing. How
 do I change the color (text and background)

There is supposed to be a Preferences menu option for IDLE on OS X but, 
depending on the Python version and how IDLE is launched, it may or may 
not appear due to various bugs.  (I'm working on some patches for these.)

If you have been launching IDLE via /Applications/MacPython 
2.5/IDLE.app, try launching it via the shell command line:  
/usr/local/bin/idle2.5.  There may now be a working Preferences menu 
item under the Python item in the menu bar; there may also be an Options 
- Configure IDLE... .   If that doesn't work, it should be possible to 
copy the default def files from idlelib in the python installation to 
your .idlerc directory and manually edit them there - ugh!.  Something 
like:

$ cd `python2.5 -c 'import sys; print sys.prefix'`
$ cd lib/python2.5/idlelib
$ ls *.def
config-extensions.def config-highlight.def  config-keys.def   
config-main.def
$ cp -i *.def ~/.idlerc
$ cd ~/.idlerc
$ vi ...

-- 
 Ned Deily,
 n...@acm.org

--
http://mail.python.org/mailman/listinfo/python-list


Re: change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
I am using EPD with Py2.5 4.0.30002when I try to launch IDLE.app which is
in the above folder i get  -bash: IDLE.app: command not found
which is strange because when I do ls it is listed.
the path to the folder is
/Applications/EPD\ with\ Py2.5\ 4.0.30002
ls returns
Build Applet.app Mayavi.terminal
Docs Pylab.terminal
Examples Python Launcher.app
Extras Update Shell Profile.command
IDLE.app

Then I do/get
vincent-daviss-macbook-pro:EPD with Py2.5 4.0.30002 vmd$ IDLE.app
-bash: IDLE.app: command not found

Not sure what I am doing wrong

Is the a way do download a new version of IDLE.app?

That last part is ugh!

Thanks
Vincent Davis


On Tue, Jan 27, 2009 at 12:40 PM, Ned Deily n...@acm.org wrote:

 In article
 77e831100901270950i6b0b510chf80a495a65ca9...@mail.gmail.com,
  Vincent Davis vinc...@vincentdavis.net wrote:
  I am using mac with python 2.5.2 and IDLE verison 1.2.2. in the help it
  states I can change he text coloring by using Configure IDLE but I not
  sure what this is. It's not sn the menu, running Configure does nothing.
 How
  do I change the color (text and background)

 There is supposed to be a Preferences menu option for IDLE on OS X but,
 depending on the Python version and how IDLE is launched, it may or may
 not appear due to various bugs.  (I'm working on some patches for these.)

 If you have been launching IDLE via /Applications/MacPython
 2.5/IDLE.app, try launching it via the shell command line:
 /usr/local/bin/idle2.5.  There may now be a working Preferences menu
 item under the Python item in the menu bar; there may also be an Options
 - Configure IDLE... .   If that doesn't work, it should be possible to
 copy the default def files from idlelib in the python installation to
 your .idlerc directory and manually edit them there - ugh!.  Something
 like:

 $ cd `python2.5 -c 'import sys; print sys.prefix'`
 $ cd lib/python2.5/idlelib
 $ ls *.def
 config-extensions.def config-highlight.def  config-keys.def
 config-main.def
 $ cp -i *.def ~/.idlerc
 $ cd ~/.idlerc
 $ vi ...

 --
  Ned Deily,
  n...@acm.org

 --
 http://mail.python.org/mailman/listinfo/python-list

--
http://mail.python.org/mailman/listinfo/python-list


Re: change syntax coloring in IDLE

2009-01-27 Thread Ned Deily
In article 
77e831100901271207o4117998cqc35c3b62fdbb1...@mail.gmail.com,
 Vincent Davis vinc...@vincentdavis.net wrote:
 I am using EPD with Py2.5 4.0.30002when I try to launch IDLE.app which is
 in the above folder i get  -bash: IDLE.app: command not found
 which is strange because when I do ls it is listed.
 the path to the folder is
 /Applications/EPD\ with\ Py2.5\ 4.0.30002
 ls returns
 Build Applet.app Mayavi.terminal
 Docs Pylab.terminal
 Examples Python Launcher.app
 Extras Update Shell Profile.command
 IDLE.app
 
 Then I do/get
 vincent-daviss-macbook-pro:EPD with Py2.5 4.0.30002 vmd$ IDLE.app
 -bash: IDLE.app: command not found
 
 Not sure what I am doing wrong

You can't launch an OSX application bundle from a shell that way.  You 
could use /usr/bin/open but that should give the same results as 
double-clicking on the IDLE icon.

I don't have personal experience with EPD distribution but there should 
be a command line binary of idle included. Try this from a Terminal 
shell:

$ cd `python -c 'import sys; print sys.prefix'`
$ bin/idle

If you can change and save the preferences that way, they should then 
apply to IDLE no matter how you launch it.

-- 
 Ned Deily,
 n...@acm.org

--
http://mail.python.org/mailman/listinfo/python-list


Re: change syntax coloring in IDLE

2009-01-27 Thread Robert Kern

On 2009-01-27 13:40, Ned Deily wrote:

In article
77e831100901270950i6b0b510chf80a495a65ca9...@mail.gmail.com,
  Vincent Davisvinc...@vincentdavis.net  wrote:

I am using mac with python 2.5.2 and IDLE verison 1.2.2. in the help it
states I can change he text coloring by using Configure IDLE but I not
sure what this is. It's not sn the menu, running Configure does nothing. How
do I change the color (text and background)


There is supposed to be a Preferences menu option for IDLE on OS X but,
depending on the Python version and how IDLE is launched, it may or may
not appear due to various bugs.  (I'm working on some patches for these.)


I'd love to get these patches so we can include them in EPD. Is there an issue 
on the Python bug tracker that I can follow?



If you have been launching IDLE via /Applications/MacPython
2.5/IDLE.app, try launching it via the shell command line:
/usr/local/bin/idle2.5.


In Vincent's case (EPD), this would be 
/Library/Frameworks/Python/Versions/Current/bin/idle2.5 .



There may now be a working Preferences menu
item under the Python item in the menu bar; there may also be an Options
-  Configure IDLE... .


Yes, to both.

--
Robert Kern

I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth.
  -- Umberto Eco

--
http://mail.python.org/mailman/listinfo/python-list


Re: change syntax coloring in IDLE

2009-01-27 Thread Vincent Davis
using terminal and openingIn Vincent's case (EPD), this would be
/Library/Frameworks/Python/Versions/Current/bin/idle2.5

Worked!!
Thanks for the help.
Vincent Davis



On Tue, Jan 27, 2009 at 2:42 PM, Robert Kern robert.k...@gmail.com wrote:

 On 2009-01-27 13:40, Ned Deily wrote:

 In article
 77e831100901270950i6b0b510chf80a495a65ca9...@mail.gmail.com,
  Vincent Davisvinc...@vincentdavis.net  wrote:

 I am using mac with python 2.5.2 and IDLE verison 1.2.2. in the help it
 states I can change he text coloring by using Configure IDLE but I not
 sure what this is. It's not sn the menu, running Configure does nothing.
 How
 do I change the color (text and background)


 There is supposed to be a Preferences menu option for IDLE on OS X but,
 depending on the Python version and how IDLE is launched, it may or may
 not appear due to various bugs.  (I'm working on some patches for these.)


 I'd love to get these patches so we can include them in EPD. Is there an
 issue on the Python bug tracker that I can follow?

  If you have been launching IDLE via /Applications/MacPython
 2.5/IDLE.app, try launching it via the shell command line:
 /usr/local/bin/idle2.5.


 In Vincent's case (EPD), this would be
 /Library/Frameworks/Python/Versions/Current/bin/idle2.5 .

  There may now be a working Preferences menu
 item under the Python item in the menu bar; there may also be an Options
 -  Configure IDLE... .


 Yes, to both.

 --
 Robert Kern

 I have come to believe that the whole world is an enigma, a harmless
 enigma
  that is made terrible by our own mad attempt to interpret it as though it
 had
  an underlying truth.
  -- Umberto Eco


 --
 http://mail.python.org/mailman/listinfo/python-list

--
http://mail.python.org/mailman/listinfo/python-list


Re: change syntax coloring in IDLE

2009-01-27 Thread Ned Deily
In article glnv4t$p...@ger.gmane.org,
 Robert Kern robert.k...@gmail.com wrote:
 On 2009-01-27 13:40, Ned Deily wrote:
  There is supposed to be a Preferences menu option for IDLE on OS X but,
  depending on the Python version and how IDLE is launched, it may or may
  not appear due to various bugs.  (I'm working on some patches for these.)
 I'd love to get these patches so we can include them in EPD. Is there an 
 issue 
 on the Python bug tracker that I can follow?

Not yet but soon.  I ran across this recently with bug squashing of 
Python 3 on OSX and it's still not quite fixed.  I'll ping back here 
when the issue/patch is filed.

In article 
77e831100901271357h2ac39589u2fbf2c7556f2e...@mail.gmail.com,
 Vincent Davis vinc...@vincentdavis.net wrote:
 Worked!!

Yay!

-- 
 Ned Deily,
 n...@acm.org

--
http://mail.python.org/mailman/listinfo/python-list