Help - Search - Members - Calendar
Full Version: Python Questions
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
Armagon
Greetings. I'm running 1.1.0beta1 on my C1000, and I've got a couple of python questions:

1. Does python_2.4.1_arm5tel.ipk contain all of the python stuff? Which is to say, if I install it, can I uninstall all the other python*.ipk files?

2. Is there any way to use the arrow keys to edit lines when using the python interactive interpreter? When I try, I get things symbols like ^[[A.

3. How do I run IDLE? I installed the python and tk packages, but when I try to run "python idle.pyc" in the /usr/python2.4/idlelib directory, I get
QUOTE
** IDLE can't import Tkinter.  Your Python may not be configured for Tk. **


4. Barring getting numbers 2 or 3 working, can anyone recommend an IDE that lets me get at python's help facilities?

Thanks,
Armagon
mike_r
1) The other ipks contain various modules that you may or may not use, depending on your needs. A full blown python installation is something like 40 MB, so I think the python_2.4.1 ipk is only the core.

2) Make sure the readline ipks are installed. This means both the regular readline ipk and something like python-readline.

3) I haven't tried idle itself, but for Tk applications, you need tcl/tk installed, in addition to python-tkinter.

4) Not sure on #4. I use books :-)

This is all from memory, so the filenames might vary a bit. All of the above work for me, so you should be able to get what you want. Good luck.

Mike
Armagon
QUOTE(mike_r @ Apr 10 2006, 07:57 AM)
2) Make sure the readline ipks are installed. This means both the regular readline ipk and something like python-readline.
*

That was it? Thank you so much! That's wonderful.

QUOTE(mike_r @ Apr 10 2006, 07:57 AM)
3) I haven't tried idle itself, but for Tk applications, you need tcl/tk installed, in addition to python-tkinter.

Ah. I'd installed Tk but not tcl. Works like a charm.

QUOTE(mike_r @ Apr 10 2006, 07:57 AM)
4) Not sure on #4. I use books :-)

Yeah; it is hard to beat books. Although, downloading the python docs and reading them on the Z is really nice, too.

Thank you so much, Mike!

If anyone knows more about question number 1 (or has any more thoughts on question 4), I'd love to know.

Armagon
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.