I also want to create a text editor using Python

It sounds like I want to do something similar to danesh1354. I want to create a lightweight text editor written in Python that uses a custom file format. Fabez, would you mind pointing me in the right direction too?

First does it make sense to customize or learn from any of these text editors:

PyQT4 Text Editor (a tutorial in three parts)
Simple text...