Posts Tagged Editra
In the first tutorial, we created a simple window using Python and Pygame. The next step, will be building on that example, we will create a star field background, then write the code to animate it. One important point about these tutorials is the assumption that anyone following along already has at least a basic knowledge of how Python code is structured. If that is not the case, then you should, at the very least, want to have the Python documentation(included in the Python install) at hand incase you wanted it for a reference. There are some very good resources available for Python, either through THE OFFICIAL PYTHON WEB-SITE or by completing a Google search on the Python version you have installed. If you have already coded the first tutorial you should do just fine with this one. If there are any comments about the tutorials, whether they are critical or complimentary, you’re welcome to post them. If there’s information that I have glossed over or skipped entirely, let me know, and I will add it in, with future edits of the tutorials.
I typically use Editra v0.7.12 to write Python code, when including the psyco try/except block, Editra would occasionally crash. When I ran the starfield.py file in Python IDLE 2.6, it never crashed(but you need to have the pygame.quit() statement, so the app window does not crash). If you’re using a different IDE your mileage may vary, if in doubt, use IDLE as your benchmark(or use IDLE to run this example).
UPDATE: Psyco is no longer supported as of March 12, 2012. If you are already using it you can choose to include it, if you’re not using psyco then avoid the install unless your confident that you can make it work.
Skip the source code in red, it is the psyco try/except block!
You can find Editra at http://editra.org.
The current version is 7.12 and it requires wxPython 2.8 to run. On my system, Editra is setup with Python 2.6 but I can run any version of Python through it (2.4, 2.6, 3.1, and even Panda 3d-Python 2.6). Where Editra really excels is by adding the optional plug-ins. Once installed, these transform Editra into a serious IDE for Python projects or simple code dissections.
Available for Linux, Mac OS X, and Windows
The project documentation explains everything from installation and configuration to adding the plugins, and by checking http://editra.org/supported_file_types you will see a list of other languages that Editra can be used to edit.
If your looking for a streamlined, functional, and flexible Python IDE, Editra is definitely worth a look.
Not too long ago, 07/23/2011 the latest release of Editra 0.6.58 was available online at http://editra.org/download . This is a great platform to use for editing Python (2.6/2.7) code or 59 other types of code you might want to write. Editra is highly versatile and extremely customizable(you can tweak literally everything about it). On the website, they refer to Editra as “A Developer’s Text Editor”, but if you add the plug-ins that are available, it becomes a very competent and flexible IDE. The program’s tag like should read: Editra A Developer’s Most Indispensable Code Editor.
Definitely worth checking out!