Skip navigation.


a simple text editor
Current stable version: 
Current testing version: 
Primary author(s): 
Thomas Leonard


  • Unlimited undo and redo.
  • Interactive searching (scrolls as you type to show the next match).
  • Powerful search and replace, with full regular expression support.
  • Syntax highlighting (if GtkSourceView is available).
  • Spell checking (if pygtkspell is available).
  • Show changes from saved version, or from a previous backup.
  • Bookmarks.
  • Word wrap.
  • Drag-and-drop saving.
  • Supports UTF-8, allowing free use of characters from all languages.


  1. Make sure ROX-Lib2 is installed (drag it to your /lib directory).
  2. Download the archive above.
  3. Extract it (eg, by dragging it to Archive)
  4. Click on it to run it if your filer supports application directories, or run the Edit/AppRun file if it doesn't.
  5. The documentation is in the Edit/Help directory.

There is no need to compile; it's a python program.

Where do I get gtksourceview?

It is part of gnome-python-extras (2.10 or later).

Edit segfaults on startup

After upgrading a few libraries on my Debian/unstable system today, Edit stopped working. It would segfault on start-up trying to import gtksourceview.

Upgrading pygtk fixed it:

apt-get install python2.3-gtk2

Unable to Activate Line Numbers in Edit

I am currently not able to activate line numbers in Edit. I have the following installed:

gtksourceview-1.4.2 (this is not currently installed, but available)

If I have both gtksourceview and gnome-python-extras installed, Edit does not start and gives the message:

"Fatal Python error: can't initialise module gtksourceview"

If I remove either gtksourceview or gnome-python-extras, Edit runs fine except that I can not activate the line numbers. Neither the gtksourceview nor the gnome-python-extras documentation are helpful. I have explored the Edit directories and files, but I cannot find anything that would tell me where it is looking for the python modules.

I am using a Linux From Scratch operating system. The only knowledge of Python that I have is how to run programs.

Does gtksourceview, and all of the things it depends on, have to be installed? Would someone be able to give me some more troubleshooting steps?



import gtksourceview

Try importing it manually:

python -c 'import gtksourceview'

That should just return without printing anything. If you get an error, gtksourceview isn't working. It's difficult to know what the cause is... perhaps you compiled pygtksourceview against one version of sourceview, but are running with a different version?

Does gtksourceview, and all

Does gtksourceview, and all of the things it depends on, have to be installed?

Yes! If gtksourceview is not installed before you configure/make/install gnome-python-extras then pysourceview will not be built (or at least won't work).

That said - I had a similar problem a while back and it only started working after upgrading/rebuilding a bunch of things. I never did figure out what the problem was.

It's Solved

I think that the problem is in gnome-python-extras-2.12.1. Plus a little non-clarity, at least for me, in the dependencies for it.

Those who have a complete Gnome install may not experience this, but I'm using ROX in a Linux From Scratch build.

I "down graded" to gnome-python-extras-2.10.1 and the configuration failed because I did not have gnome-python installed (I also had to install its dependecy, libgnome-2). 2.12.1 configuration did not give any errors either before or after I installed gnome-python. Additionally, gnome-python-extras-2.12.1 failed 'make check' with the same error message I was getting when I tried to run Edit using gtksourceview:

Fatal Python error: can't initialise module gtksourceview

So, I installed gnome-python-extras-2.10.1 (I had to "hack' the configure file so it would recognize Python-2.4). It passed all the tests and now Edit has line numbers.

Thanks for the help.


another package

I think the key package here is "gnome-python2-gtksourceview" at least on FC5. Without it, neither the line numbers nor the syntax highlighting work.


Is there any functionality for a "global clipboard"? I find it quite annoying when I wish to cut and paste between edit documents and have to keep the origional open or else I loose the clipboard data


Python 2.6

I have recently upgraded to openSuSE 11.1 with the very new Python and till now found 2 problems and one solution:
1. Search do now work - returns error. Reason is variable "with", which became instruction in the new Python. Solution - I just exchanged "with" for "with1"
2. Saving the file (clicking on Save button) not only saves the file but additionaly opens new Rox window in user's homedirectory. "Save as" works the same. Till now no idea why .

with keyword

I've fixed the "with" problem. Don't see the other one:

I think ROX-Lib runs "rox -x", but that shouldn't open a new window.

Syndicate content