You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pyqt-checkbox-list-widget

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyqt-checkbox-list-widget

PyQt QListWidget for checkable items

0.0.1
PyPI
Maintainers
1

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

https://user-images.githubusercontent.com/55078043/145694178-9d583318-2533-43fd-bbc1-71c85444a953.mp4

Similar package

pyqt-checkbox-table-widget

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts