top of page
HD-wallpaper-python-amoled-coding-coding-dark-dark-programming-python-sky-universe_edited.

Lorus

A text file editor

This Python program project comprises over 800 lines of code and is designed to execute specific functions related to text manipulation. More specifically, it is programmed to search for, count, and replace either individual words or complete sentences within a specified text file, denoted by the file extension ".txt". With its extensive code base, this program is capable of performing a wide range of text manipulation tasks, providing a powerful tool for developers seeking to automate and streamline their work in this domain.

331928049_606072401363740_5828899492255785105_n_edited.jpg
photo-1515879218367-8466d910aaa4-scaled_edited.jpg
desktop-wallpaper-python-programming-python-coding.jpg

SOURCE CODE AVAILABLE

Program Composition

In this 800 lines of  code program, contains:

• Functions

• Classes

• Methods

• Tkinter functions

• Regular Expressions

• File Handlings

• While Loops

• For Loops

• If, Else

istockphoto-1291641896-612x612_edited_ed

FUNCTIONALITY DESCRIPTION

Functionality Dscription
desktop-wallpaper-python-programming-python-coding.jpg

SOURCE CODE AVAILABLE

FUNCTIONALITY DESCRIPTION

Upon running the program, a brief introduction will first be executed, after which the user will be prompted to select between the options to sign in or sign up. If the user chooses to sign up, they will be required to enter their email address and create a password. Upon completion of the account creation process, a summary of the account information will be displayed to confirm successful registration. The user will then proceed to select the desired (.txt) file to be edited at a later time. Once a file is selected, the user will be prompted to indicate whether they wish to edit a word or a sentence within the chosen text file. (see next page)

desktop-wallpaper-python-programming-python-coding.jpg

SOURCE CODE AVAILABLE

FUNCTIONALITY DESCRIPTION

In the event that the user selects "Word", they will be prompted to specify which word within the text file they wish to edit. Once the designated word has been entered, the user will be asked to indicate their desired action - whether to replace the word or simply search for and count the occurrences of the word within the text file. The user will then await the completion of the selected process. If the user has opted to "Replace" the word, they will be prompted to enter the replacement word, and the original word will be substituted with the new one within the text file. On the other hand, if the user has chosen to "Count" the word, they will receive a tally of the total number of occurrences of the selected word within the text file. Both options will generate an invalidation or no result if the selected word is invalid.

desktop-wallpaper-python-programming-python-coding.jpg

SOURCE CODE AVAILABLE

FUNCTIONALITY DESCRIPTION

Furthermore, in the event that the user selects "Sentence" to be edited within the text file, the user will again be prompted to indicate their desired action for the selected sentence. If the user opts to "Replace" the sentence, they will be required to enter the specific sentence within the text file that they wish to replace. The user will then be asked to select the desired replacement sentence for the selected sentence within the text file. Upon completion of the replacement process, the user will have an updated text file with the replaced sentence. Alternatively, if the user chooses to "Count" the sentence, they will be prompted to enter the first word of the sentence, and will receive a tally of the total number of occurrences of the selected sentence within the text file. Additionally, all the relevant sentences will be returned. Both options will generate an invalidation or no result if the selected word is invalid.

desktop-wallpaper-python-programming-python-coding.jpg

SOURCE CODE AVAILABLE

FUNCTIONALITY DESCRIPTION

ollowing the editing process, the user will be prompted to choose between continuing the search/editing process or signing out of the program. If the user chooses to continue searching/editing, the program will continue to loop through the editing process until the user opts to exit. Conversely, if the user chooses to sign out, they will be required to re-enter their account information to confirm the sign-out process. This marks the conclusion of the program's functionality.

SNIPPET CODE AVAILABLE!

READ
REFLECTION

HD-wallpaper-python-amoled-coding-coding-dark-dark-programming-python-sky-universe_edited.

SEE FULL

CODE HERE

photo-1515879218367-8466d910aaa4-scaled_edited_edited_edited_edited_edited_edited.jpg

or

REFLECTION

REFLECTION

GAINED KNOWLEDGE

Creating a Text Editor program using Python requires knowledge of several concepts, including regular expressions (regex) for text processing, the tkinter library for building the graphical user interface, and the file input/output operations in Python. Additionally, the program may need to handle other features such as syntax highlighting, auto-completion, and code formatting.

SAMPLE OUTPUTS

SIGNING UP
SAMPLE

© 2022 by Lawrence Acodili
Powered and secured by Wix

Call

+639615667908

Write

acodililawrence200.wixsite.com/lawrenceaco

Follow

  • Facebook
  • Twitter
  • LinkedIn
  • Instagram
bottom of page