1,105,263 Community Members

Good IDEs?

Member Avatar
Clueless86
Junior Poster in Training
76 posts since Jul 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

I was wondering is there a good IDE for python /wxpython/pygame? I was wanting something that would do all 3 very good, for when I do finally jump to a GUI... I was messing around a little with pygame, and I noticed it dose not like the python IDLE...

Member Avatar
snippsat
Veteran Poster
1,039 posts since Aug 2008
Reputation Points: 483 [?]
Q&As Helped to Solve: 381 [?]
Skill Endorsements: 10 [?]
 
0
 

I been using komodo ide for some years now.
Been happy with it,works fine for wxpython/pygame not that you need own ide for that.
http://www.activestate.com/komodo/

Two very good free editors is.
http://code.google.com/p/pyscripter/
http://code.google.com/p/ulipad/

Member Avatar
Stefano Mtangoo
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 441 [?]
Q&As Helped to Solve: 394 [?]
Skill Endorsements: 2 [?]
 
0
 
Member Avatar
Stefano Mtangoo
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 441 [?]
Q&As Helped to Solve: 394 [?]
Skill Endorsements: 2 [?]
 
0
 

I was messing around a little with pygame, and I noticed it dose not like the python IDLE...

Have you tried VIDLE
http://vpython.org/vidle/index.html

Member Avatar
DaBunBun
Light Poster
36 posts since Jul 2009
Reputation Points: 18 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

No one here uses Eclipse?

For Eclipse: http://www.eclipse.org/
For pydev (python extension for Eclipse): http://pydev.sourceforge.net/

Member Avatar
zachabesh
Junior Poster
106 posts since Jun 2008
Reputation Points: 5 [?]
Q&As Helped to Solve: 17 [?]
Skill Endorsements: 0 [?]
 
0
 

Heh heh, I love eclipse, but the interactive shell (a la IDLE) is pretty darn awesome for testing stuff out. Example:

>>> #start with your function
>>> def count_chars(char,string):
	"""A functiont that counts how many chars in the string"""
	pass

>>> strg = 'bunnies'
>>> count_chars('n',strg) #nothing happens!
>>> def count_chars(char,string):
	"""A functiont that counts how many chars in the string"""
	num = 0
	for x in string:
		if char == x:
			num += 1
	return num

>>> strg = 'bunnies'
>>> count_chars('n',strg)
2
>>> strg2 = 'sleepy...zzz'
>>> count_chars('z',strg2)
3

Then, you just copy and paste into your module:

def count_chars(char,string):
	"""A functiont that counts how many chars in the string
        >>> strg = 'bunnies'
        >>> count_chars('n',strg) 
        2
        >>> strg2 = 'sleepy...zzz'
        >>> count_chars('z',strg2)
        3
        """
	num = 0
	for x in string:
		if char == x:
			num += 1
	return num

And then you can use the doctest module. Fairly awesome. Eclipse is great for larger projects, though, keeps you organized.

Question Answered as of 4 Years Ago by Stefano Mtangoo, zachabesh, snippsat and 1 other
Member Avatar
Clueless86
Junior Poster in Training
76 posts since Jul 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Well I chose VIDLE...And it still does not work right, or maybe I am just stupid and not looking at things properly..I am just trying some pygame simple things, like making a window that will just close, instead its always busy and i have to use [ctrl+alt+del] to close it..

import pygame

screen = pygame.display.set_mode((480, 480))
running = 1

while running:
    event = pygame.event.poll()
    if event.type == pygame.QUIT:
        running = 0

I am not sure if (sys) is needed, but anyway it still gives a busy window.. I am on windows XP 32.

Member Avatar
jlm699
Veteran Poster
1,104 posts since Jul 2008
Reputation Points: 320 [?]
Q&As Helped to Solve: 295 [?]
Skill Endorsements: 0 [?]
 
0
 

the interactive shell (a la IDLE) is pretty darn awesome for testing stuff out.

Agreed. I use Notepad++ for my editing and have it set up with all kinds of whiz-bangs. I hit F6 to pull up an instance of PyCrust which is a Python Shell with autocomplete, syntax highlights, etc... I've also got shortcuts for running syntax checks, running the program I'm editing in Python, and a few others.

Member Avatar
zachabesh
Junior Poster
106 posts since Jun 2008
Reputation Points: 5 [?]
Q&As Helped to Solve: 17 [?]
Skill Endorsements: 0 [?]
 
0
 

Agreed. I use Notepad++ for my editing and have it set up with all kinds of whiz-bangs. I hit F6 to pull up an instance of PyCrust which is a Python Shell with autocomplete, syntax highlights, etc... I've also got shortcuts for running syntax checks, running the program I'm editing in Python, and a few others.

Hmmm, interesting. I'm going to check out PyCrust, since I'm NOT a fan of IDLEs many issues...

Member Avatar
bumsfeld
Posting Virtuoso
1,537 posts since Jul 2005
Reputation Points: 399 [?]
Q&As Helped to Solve: 261 [?]
Skill Endorsements: 7 [?]
 
0
 

I have Python 3.1 installed in my XP machine and use PyScripter (Windows executable written with Delphi) or the Geany IDE.

For Python 2.5 I use Portable Python 2.5.4 that does not interfere with the installed Python 3.1 and that comes with the wonderful SPE IDE. SPE uses some great programs right from its tools, like WinPdb, Kiki, PyFilling, PyChecker, wxGlade, XRCed etc.

PyScripter from:
http://pyscripter.googlepages.com/

Portable Python from:
http://www.portablepython.com/releases/

Member Avatar
DaBunBun
Light Poster
36 posts since Jul 2009
Reputation Points: 18 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 

Heh heh, I love eclipse, but the interactive shell (a la IDLE) is pretty darn awesome for testing stuff out.

Eclipse has an interactive shell

Member Avatar
bumsfeld
Posting Virtuoso
1,537 posts since Jul 2005
Reputation Points: 399 [?]
Q&As Helped to Solve: 261 [?]
Skill Endorsements: 7 [?]
 
0
 

Eclipse is much too slow and too large, actually huge! Not really made for nimble Python programming.

Member Avatar
vegaseat
DaniWeb's Hypocrite
6,984 posts since Oct 2004
Reputation Points: 1,544 [?]
Q&As Helped to Solve: 1,872 [?]
Skill Endorsements: 67 [?]
Moderator
 
0
 

Talk about a lean and nimble IDE, I am still a friend of ConText. You can set it to the language you are using, and even specify which version of Python you want to use. Best of all, I can run C, CPP, Ruby, Lua, IronPython and Python on it. It does recognize the syntax by the file extensions.

Member Avatar
Allen 0108
Newbie Poster
19 posts since Jan 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I have Python 3.1 installed in my XP machine and use PyScripter (Windows executable written with Delphi) or the Geany IDE.

I justed started with Python 3.1 and installed Geany to try it out.
I wrote a very small piece of code with 3 variables to test this IDE.
When I attempt to run the code, a cmd.exe window opens up with the message: : 'Python' is not recognized as an internal or external command, operable program or batch file. Press any key to continue..." Nothing else shows.

I have not located any documentation of configuring Geany to work with Python 3.1 regarding this issue. The file I created is saved with a .py extension, and can be accessed; it just will not execute. Any ideas...?

OS is Windows Vista.

Member Avatar
Stefano Mtangoo
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 441 [?]
Q&As Helped to Solve: 394 [?]
Skill Endorsements: 2 [?]
 
0
 

Python is not in your path
Add it via
Start->Right Click My Computer->Properties->Advanced Properties tab->Environment variable

Member Avatar
Stefano Mtangoo
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 441 [?]
Q&As Helped to Solve: 394 [?]
Skill Endorsements: 2 [?]
 
0
 

And for solved threads, it is beteer you start new one :)

Member Avatar
vegaseat
DaniWeb's Hypocrite
6,984 posts since Oct 2004
Reputation Points: 1,544 [?]
Q&As Helped to Solve: 1,872 [?]
Skill Endorsements: 67 [?]
Moderator
 
0
 

To set Geany to use Python31 do the following ...
click on the Build dropdown menu
select Set Includes and Arguments
in Execute enter C:/python31/python "%f"

Member Avatar
Tech B
Posting Whiz in Training
268 posts since May 2009
Reputation Points: 48 [?]
Q&As Helped to Solve: 33 [?]
Skill Endorsements: 0 [?]
 
0
 

Well I chose VIDLE...And it still does not work right, or maybe I am just stupid and not looking at things properly..I am just trying some pygame simple things, like making a window that will just close, instead its always busy and i have to use [ctrl+alt+del] to close it..

import pygame

screen = pygame.display.set_mode((480, 480))
running = 1

while running:
    event = pygame.event.poll()
    if event.type == pygame.QUIT:
        running = 0

I am not sure if (sys) is needed, but anyway it still gives a busy window.. I am on windows XP 32.

instead of useing the running = 0 thing, maybe try sys.exit()?

import pygame, sys
from pygame.locals import * # i noticed you didn't have this either.

screen = pygame.display.set_mode((480, 480))


while running:
    event = pygame.event.poll()
    if event.type == pygame.QUIT:
        sys.exit()

As for IDE's I use PyScripter.

Member Avatar
Allen 0108
Newbie Poster
19 posts since Jan 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks, it works.

Member Avatar
strider1066
Newbie Poster
12 posts since Jul 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 0 [?]
 
0
 

here are several to consider...
I use Eric4 for most of what I write, It has a wealth of features. The major downside is the almost complete lack of documentation.

Ipython is great for testing small bits of code. it has a wealth of secialized features for reusing lines of code. The only thing that drives me crazy is that it doesn't handle reusing blocks with indented statements

Leo is interesting. It is written in python and I use it as a outliner. However, it can be used to develope code using the outline metaphor.

Lastly, Scite is a nice light weight editor that has coding function, syntax highlighting, code folding, etc

You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article