(self, checkboxDef, handledHandles)
| 256 | self._miscInputBoxes.append(inputBox) |
| 257 | |
| 258 | def __addInputCheckbox(self, checkboxDef, handledHandles): |
| 259 | if not self.__checkInputConditions(checkboxDef): |
| 260 | return |
| 261 | handledHandles.add(checkboxDef.handle) |
| 262 | fieldCheckbox = wx.CheckBox(self, wx.ID_ANY, checkboxDef.label, wx.DefaultPosition, wx.DefaultSize, 0) |
| 263 | fieldCheckbox.SetValue(self._storedConsts.get((checkboxDef.handle, None), checkboxDef.defaultValue)) |
| 264 | fieldCheckbox.Bind(wx.EVT_CHECKBOX, self.OnNonMainInputChanged) |
| 265 | self.inputsSizer.Add(fieldCheckbox, 0, wx.BOTTOM, 5) |
| 266 | # Store info about added checkbox |
| 267 | checkbox = CheckBox(handle=checkboxDef.handle, checkBox=fieldCheckbox) |
| 268 | self._inputCheckboxes.append(checkbox) |
| 269 | |
| 270 | def __checkInputConditions(self, inputDef): |
| 271 | if not inputDef.conditions: |
no test coverage detected