Socket
Socket
Sign inDemoInstall

pyqt-checkbox-list-widget

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pyqt-checkbox-list-widget

PyQt QListWidget for checkable items


Maintainers
1

Readme

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc