PyQt QListWidget for checkable items
Project description
pyqt-checkbox-list-widget
PyQt QListWidget for checkable items
Requirements
PyQt5 >= 5.8
Setup
python -m pip install pyqt-checkbox-list-widget
Included Packages
- pyqt-tooltip-list-widget - parent class
Example
from PyQt5.QtWidgets import QCheckBox, QVBoxLayout, QWidget, QApplication
from pyqt_checkbox_list_widget.checkBoxListWidget import CheckBoxListWidget
class Widget(QWidget):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
allCheckBox = QCheckBox('Check all')
checkBoxListWidget = CheckBoxListWidget()
checkBoxListWidget.addItems(['a', 'b', 'c', 'd'])
allCheckBox.stateChanged.connect(checkBoxListWidget.toggleState)
lay = QVBoxLayout()
lay.addWidget(allCheckBox)
lay.addWidget(checkBoxListWidget)
self.setLayout(lay)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
widget = Widget()
widget.show()
app.exec_()
Result
Similar package
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyqt-checkbox-list-widget-0.0.1.tar.gz.
File metadata
- Download URL: pyqt-checkbox-list-widget-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6910506196093697d7b439498250cde4e33f0508a6d62d19d29c18e9c4d2a18b
|
|
| MD5 |
224e3291b571e506c93551b3b011773d
|
|
| BLAKE2b-256 |
b0cb0b7be3d55e12917339c6b61540275d70c0dd6346117282f32c0f4c02c95f
|
File details
Details for the file pyqt_checkbox_list_widget-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyqt_checkbox_list_widget-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f48ed53d23bd40e6edc0b1bdb64a3e2b0b2e62fabe830869d2a0060810e82149
|
|
| MD5 |
854e183924f197460cb508324f34846f
|
|
| BLAKE2b-256 |
f7b5bc7da927f861dfdf85eb316452421ec684d23dd70bee3715409bab8af476
|