This project is a weather application that provides weather information to users. The application is designed using Python and PyQt for the user interface.
- mainpage.ui: This file contains the UI design for the main page of the application. It is an XML file generated by Qt Designer.
- mainpage.py: This file contains the Python code to handle the logic of the main page.
- weather_proj.py: This file contains the main logic for fetching and displaying weather data.
- Python 3.x
- PyQt5
-
Clone the repository to your local machine.
-
Ensure you have Python 3.x installed.
-
Install the necessary Python libraries using pip:
pip install PyQt5
-
Run the application:
python weather_proj.py
-
Features:
- The application fetches weather data from an online API.
- Displays current weather information on the main page.
This file defines the layout and components of the main page using Qt Designer. It includes labels, buttons, and other UI elements that make up the main page interface.
This file contains the logic for interacting with the UI defined in mainpage.ui. It includes:
- Loading the UI file.
- Connecting UI elements to their respective functionalities.
This file contains the main logic for fetching and displaying weather data. It includes:
- Functions to fetch weather data from an API.
- Updating the UI with the fetched data.