# pyqt5-custom-widgets **Repository Path**: lei-c/pyqt5-custom-widgets ## Basic Information - **Project Name**: pyqt5-custom-widgets - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-14 - **Last Updated**: 2024-10-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PyQt5 Custom Widgets drawing

More useful and stylish widgets for PyQt5 such as toggle switches, animated buttons, etc..
## Table of Contents - [Installing](#Installing) - [Usage](#Usage) - [Widgets](#Widgets) - [Examples](#References) - [Documentation](#References) - [Styling Reference](#References) - [Dependencies](#Dependencies) - [TODO](#Todo) - [License](#License) ## Installing Install using PIP (it might be `pip3` or `python3` depending on your platform) ``` pip install pyqt5Custom ``` or ``` python -m pip install pyqt5Custom ``` Also you can also use PySide2 instead of PyQt5 with just litte changes. ## Usage Just import `pyqt5Custom` and you're ready to go. You can check out [Examples](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/), one little example for StyledButton widget: ```py from pyqt5Custom import StyledButton ... btn = StyledButton(text="Hello!") btn.setStyleDict({ "border-radius" : 20, "font-family" : "Helvetica", "font-size" : 17 }) @btn.clicked.connect def slot(): print("Quitting!") app.exit() layout.addWidget(btn) ... ``` ## Widgets | ![ToggleSwitch](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/toggleswitch.gif)
ToggleSwitch
[Documentation](documentation.md) | ![StyledButton](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/styledbutton.gif)
StyledButton
[Documentation](documentation.md) | | :---: | :---: | | ![ImageBox](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/imagebox.png)
**ImageBox**
[Documentation](documentation.md) | ![ColorPicker](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/colorpicker.png)
**ColorPicker**
[Documentation](documentation.md) | | ![DragDropFile](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/dropfileshowcase.gif)
**DragDropFile**
[Documentation](documentation.md) | ![EmbedWindow](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/embedwindowshowcase.gif)
**EmbedWindow**
[Documentation](documentation.md) | | ![CodeTextEdit](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/codetextshowcase.gif)
**CodeTextEdit**
[Documentation](documentation.md) | ![TitleBar](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/titlebarshowcase.gif)
**TitleBar**
[Documentation](documentation.md) | | ![Spinner](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/spinnershowcase.gif)
**Spinner**
[Documentation](documentation.md) | ![Toast](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/data/toastshowcase.gif)
**Toast**
[Documentation](documentation.md) | ## References - See [Examples](https://github.com/kadir014/pyqt5-custom-widgets/blob/main/examples/) page for examples - See [Documentation](documentation.md) page for documentation and detailed widget references - See [styling reference](stylingref.md) page for styling instructions on custom widget ## Dependencies - [PyQt5](https://pypi.org/project/PyQt5/) - [requests](https://pypi.org/project/requests/) ## TODO - [ ] Better styling and QSS support - [ ] Rework animations using [Qt's animation framework](https://doc.qt.io/qtforpython/overviews/animation-overview.html) - [ ] Optimize and complete ColorPicker widget ## License [GPL v3](LICENSE) © Kadir Aksoy