Skip to content

OpenGenus/text-editor-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

text-editor-python

Simple Text Editor in Python

Introduction

A text editor is a computer program that enables users to customise text according to their needs. It has several functionalities that can be used for editing the text. The Tkinter library is used for creating this. The functionalities are included in separate menu of the Tkinter window. PIL library is used for adding images.

Technologies

Text Editor created with:

  • PyCharm Community Edition 2022.3
  • Python 3.10.9
  • Tkinter library
  • PIL library
  • Colorchooser, Filedialog, Font from Tkinter

Setup

  • Install Python
  • Install Tkinter
  • Install PIL
  • Import necessary libraries

Use Text Editor

The window frame contains a textbox where we can write or open a file to read or edit. The file menu has options to create new file, open a file, and save a file. The edit menu is used for cut, copy, paste functions. The text can be bold, italic, or aligned to the left, right, or center using the buttons on the toolbar.

References:

  1. https://github.com/amandeep511997/Text-Editor/tree/8ef6bc2aa5c315d798630e6cd8835087284756c6
  2. https://github.com/neeru1207/Text-Editor/blob/master/TextEditor.py
  3. https://www.youtube.com/watch?v=UlQRXJWUNBA&t=639s

Output:

Text Editor

texteditor

File, Edit, Format Menu

formatmenu editmenu filemenu

Text Styles

toolbartext

Text Align Right, Center

centeralign rightalign