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.
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.
Python 3.x (3.6 or higher recommended)
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
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.
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.
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.
No support for additional text formatting options (e.g., underline, font size, etc.). No support for find/replace with regular expressions.
This project is licensed under the MIT License - see the LICENSE file for details.
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!