lundi 8 novembre 2021

How to let the user chek only 2 check boxes from an unknown number of checkboxes PyQt5?

Let the checkboxes be random(5-10), I want to restrict the user to select any two of the checkboxes. self.check_boxes = [QtWidgets.QCheckBox(self.dockWidgetContents_2) for i in col_names] This is a list of checkboxes that I'm generating. Please help me make my desired checkboxes.




Aucun commentaire:

Enregistrer un commentaire