Skip to content

Minimal Python Notepad built with tkinter — open/save, cut/copy/paste, bold/italic toggles, and find/highlight.

License

Notifications You must be signed in to change notification settings

YagmurCemGul/notepad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Notepad Application

The Notepad application is a simple text editor built using Python's tkinter library. It provides basic text editing features, as well as text formatting options for bold and italic. Additionally, it includes a find/replace functionality to search and highlight occurrences of specific text within the document.

Features

Create new text files and open existing text files from your computer. Save edited files with custom names and extensions. Perform text editing operations: cut, copy, paste, and select all. Apply text formatting options: toggle bold and toggle italic for selected text. Search and highlight occurrences of specific text within the document.

Requirements

Python 3.x (3.6 or higher recommended)

How to Run

Ensure you have Python 3.x installed on your system. Clone this repository or download the notepad.py file. Open a terminal or command prompt and navigate to the directory containing notepad.py. Create a Python virtual environment (optional but recommended). Activate the virtual environment (if you created one). Run the Notepad application using the following command:

python notepad.py

Usage

After running the application, you will see a simple GUI window with a text area. Use the "File" menu to create a new file, open an existing file, save the file, or save it with a different name. Use the "Edit" menu to perform text editing operations like cut, copy, paste, select all, toggle bold, and toggle italic. Use the "Search" menu to find and highlight occurrences of specific text within the document.

Text Formatting

To apply text formatting:

Select the text you want to format by clicking and dragging the cursor over it. Click on "Toggle Bold" or "Toggle Italic" from the "Edit" menu to apply or remove the respective formatting.

Find/Replace

To find text within the document:

Click on "Find" from the "Search" menu to open a Find dialog. Enter the text you want to find in the dialog and click "Find." All occurrences of the text will be highlighted in yellow.

Known Issues

No support for additional text formatting options (e.g., underline, font size, etc.). No support for find/replace with regular expressions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

The Notepad application was created as a simple demonstration of Python's tkinter library. It can serve as a starting point for building more complex text editors or GUI applications with extended features. Feel free to contribute to the project or use it as a learning resource!

About

Minimal Python Notepad built with tkinter — open/save, cut/copy/paste, bold/italic toggles, and find/highlight.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages