An open API service indexing awesome lists of open source software.

https://github.com/burhanali2211/fibonacci-generator


https://github.com/burhanali2211/fibonacci-generator

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Fibonacci GUI Application

## Overview
This is a simple Fibonacci series generator built using **PyQt6**. It provides a graphical user interface (GUI) where users can input a number (N) and generate the Fibonacci series up to the Nth term. The generated series is displayed in a scrollable area, and users can save or load the results from a file.

## Features
- **Generate Fibonacci Series**: Enter a number and generate the series up to that term.
- **Scrollable Output**: Displays long Fibonacci sequences neatly.
- **Save to File**: Save the generated series to a text file.
- **Load from File**: Load a previously saved Fibonacci series.
- **Clear Output**: Clear the displayed series and input field.
- **Error Handling**: Validates input and provides error messages.
- **Resizable Window**: Properly adjusts UI components when resized.

## Installation

### Prerequisites
Make sure you have Python installed (version 3.6 or later recommended). You also need to install **PyQt6**.

```sh
pip install PyQt6
```

## How to Run
1. Clone or download this repository.
2. Open a terminal/command prompt and navigate to the project folder.
3. Run the script using:

```sh
python Fibonacci-Generator.py
```

## Usage
1. Enter a positive integer in the input box.
2. Click **Generate** to display the Fibonacci series.
3. Click **Save to File** to save the series.
4. Click **Load from File** to load a previously saved series.
5. Click **Clear** to reset the output.

## Contributing
Feel free to fork this project and enhance it. If you have any suggestions or improvements, open a pull request.

## License
This project is licensed under the MIT License.