This project demonstrates the usage of the QPushButton element in PySide6, a Python binding for the Qt framework. The main.py
file creates a simple PySide6 application with a QWidget containing a QPushButton, showcasing various signals emitted by the button.
This project showcases the implementation of a PySide6 application with a QPushButton, demonstrating the usage of signals such as clicked
, pressed
, and released
. The application features a QWidget with a QPushButton and prints messages to the console when the button is clicked, pressed, or released.
- /QPushButton/main.py: The main Python script that creates the PySide6 application using QPushButton.
- /QPushButton/README.md: Documentation file providing information about the project.
-
Clone the repository to your local machine:
git clone https://github.com/aaleshpatil22/PySide6_Basic.git cd PySide6_Basic/QPushButton
-
Ensure you have Python and PySide6 installed:
pip install PySide6
Run the main.py
script to launch the PySide6 application:
python main.py
Explore the PySide6 application with a QPushButton, click the button, and observe the console output for messages related to the button's signals.
- Implementation of a PySide6 application with a QPushButton.
- Demonstrates the usage of QPushButton signals such as
clicked
,pressed
, andreleased
. - Console messages provide feedback on button interactions.
Feel free to contribute to this project by opening issues, suggesting enhancements, or submitting pull requests. Follow the guidelines in CONTRIBUTING.md.
This project is licensed under the MIT License - see the LICENSE file for details.