How to build a basic rich text editor?

How would you build a text editor in Python?

  • Answer:

    Use PyQt4! Building stuff using PyQt4 is very easy and quick. Ample documentation is available for Qt(C++) and utilizing the same functions in PyQt is a piece of cake. For a simple introduction, check out http://zetcode.com/gui/pyqt4/.

Vaibhav Tulsyan at Quora Visit the source

Was this solution helpful to you?

Other answers

What you need to build a text editor? There are several good text editors available freely. If you need ti build one, PyQt4 shall be a library to be considered. It has a QTextEdit class which can be a good skeleton for building a text editor.

Mico Siahaan

Try Python Curses.. it has ample examples and documentation online.. http://docs.python.org/2/howto/curses.html

Nitin Deshpande

With little knowledge of python you can make your own Text Editor . Follow this tutorial  @http://www.binpress.com/tutorial/building-a-text-editor-with-pyqt-part-one/143 . It involves only the script part. In addition: GUI: For Gui creation I would recommend @https://glade.gnome.org/  . Its very user friendly and free too .Glade will create XML file for your text editor. Fonts : Pango can be used. It looks really pretty. Compiler : Compiler inclusion can be done using subprocess package available in python.

Abhishek Bind

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.