@pymethod int|PyCButton|GetState|Returns the state of the button.
| 155 | } |
| 156 | // @pymethod int|PyCButton|GetState|Returns the state of the button. |
| 157 | static PyObject * |
| 158 | PyCButton_get_state(PyObject *self, PyObject *args) |
| 159 | { |
| 160 | CHECK_NO_ARGS(args); |
| 161 | CButton *pBut = GetButton(self); |
| 162 | if (!pBut) |
| 163 | return NULL; |
| 164 | GUI_BGN_SAVE; |
| 165 | int rc = pBut->GetState(); |
| 166 | GUI_END_SAVE; |
| 167 | return Py_BuildValue("i", rc); |
| 168 | } |
| 169 | // @pymethod int|PyCButton|SetState|Sets the state of the button. |
| 170 | static PyObject * |
| 171 | PyCButton_set_state(PyObject *self, PyObject *args) |