@pymethod |PyCButton|SetCheck|Sets or resets the state of a radio button or check box.
| 140 | } |
| 141 | // @pymethod |PyCButton|SetCheck|Sets or resets the state of a radio button or check box. |
| 142 | static PyObject * |
| 143 | PyCButton_set_check(PyObject *self, PyObject *args) |
| 144 | { |
| 145 | int check; |
| 146 | if (!PyArg_ParseTuple(args, "i", &check)) // @pyparm int|idCheck||The ID of the button. |
| 147 | return NULL; |
| 148 | CButton *pBut = GetButton(self); |
| 149 | if (!pBut) |
| 150 | return NULL; |
| 151 | GUI_BGN_SAVE; |
| 152 | pBut->SetCheck(check); |
| 153 | GUI_END_SAVE; |
| 154 | RETURN_NONE; |
| 155 | } |
| 156 | // @pymethod int|PyCButton|GetState|Returns the state of the button. |
| 157 | static PyObject * |
| 158 | PyCButton_get_state(PyObject *self, PyObject *args) |
nothing calls this directly
no test coverage detected