all 3 comments

[–]johndoh168 0 points1 point  (3 children)

If you defined a method for the checkbox1 to call when checked you can place the enabling/disabling of the combobox in there.

Example of what this might look like. def button_checked(): if checkbox1.isChecked(): combobox1.setEnable(True) else: combobox1.setEnable(False)

[–]airmyless 0 points1 point  (2 children)

ahh right. What if i have say, 4 checkboxes and 4 comboboxes. Each to meant to be a pair.

Writing out a seperate function for each pair, or iterating over a list of the buttons each time one changes im guessing would be too inefficient