Skip to content

AnshMNSoni/Morse-Code-Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Morse-Code-Converter

Overview

The Morse-Code-Converter is a Python application that allows users to convert text to Morse code and vice versa. This project aims to provide an easy-to-use interface for encoding and decoding messages in Morse code.

Features

  • Convert English text to Morse code.
  • Convert Morse code to English text.
  • User-friendly interface with Tkinter.
  • Handles error input gracefully.

Installation

Prerequisites

  • Python 3.x installed on your system.

Clone the Repository

git clone https://github.com/your-username/Morse-Code-Converter.git
cd Morse-Code-Converter

Install Dependencies

This project requires the Tkinter library, which is usually included with Python. If not, you can install it using:

pip install python-tk

Usage

Running the Application

To start the Morse-Code-Converter application, run the following command:

python morse_code_converter.py

Using the Application

  1. Text to Morse Code Conversion:

    • Enter the text you want to convert to Morse code in the input field.
    • Click the "Convert to Morse" button to see the Morse code representation.
  2. Morse Code to Text Conversion:

    • Enter the Morse code you want to convert to text in the input field (use spaces to separate Morse code characters and slashes / to separate words).
    • Click the "Convert to Text" button to see the English text representation.

Example

Text to Morse Code

Input:

Hello World

Output:

.... . .-.. .-.. --- / .-- --- .-. .-.. -..

Morse Code to Text

Input:

.... . .-.. .-.. --- / .-- --- .-. .-.. -..

Output:

HELLO WORLD

Contributing

If you would like to contribute to this project, please fork the repository and create a pull request with your changes. Contributions are always welcome!

Contact

If you have any questions or suggestions, feel free to reach out to me at LinkedIn.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages