Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2.25 KB

README.md

File metadata and controls

67 lines (42 loc) · 2.25 KB

Screenshot


PySide Logo QMessageBox Example

This project demonstrates the usage of the QMessageBox element in PySide6, a Python binding for the Qt framework. The main.py file creates a simple PySide6 application with a QWidget containing multiple QPushButton elements, each triggering a different QMessageBox scenario.

Table of Contents

Introduction

This project showcases the implementation of a PySide6 application utilizing the QMessageBox element to display various types of messages, including hard-coded and simplified ways to use QMessageBox. The application features a QWidget containing multiple buttons, each triggering a different QMessageBox scenario.

Project Structure

  • /MessageBox/main.py: The main Python script that creates the PySide6 application using QMessageBox.
  • /MessageBox/README.md: Documentation file providing information about the project.

Getting Started

  1. Clone the repository to your local machine:

    git clone https://github.com/aaleshpatil22/PySide6_Basic.git
    cd PySide6_Basic/MessageBox
  2. Ensure you have Python and PySide6 installed:

    pip install PySide6

Usage

Run the main.py script to launch the PySide6 application:

python main.py

Explore the PySide6 application with multiple buttons, each triggering different QMessageBox scenarios.

Features

  • Usage of QMessageBox to display various types of messages, including Critical, Question, Information, Warning, and About.
  • Implementation of both the hard-coded way and simplified methods to create and display QMessageBox.
  • Handling user interaction with QMessageBox and printing the user's choice.

Contributing

Feel free to contribute to this project by opening issues, suggesting enhancements, or submitting pull requests. Follow the guidelines in CONTRIBUTING.md.

License

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