@pymethod int|PyCButton|SetButtonStyle|Sets the style of the button.
| 197 | } |
| 198 | // @pymethod int|PyCButton|SetButtonStyle|Sets the style of the button. |
| 199 | static PyObject * |
| 200 | PyCButton_set_style(PyObject *self, PyObject *args) |
| 201 | { |
| 202 | int style; |
| 203 | BOOL bRedraw = TRUE; |
| 204 | if (!PyArg_ParseTuple(args, "i|i", |
| 205 | &style, // @pyparm int|style||The new style for the button. |
| 206 | &bRedraw))// @pyparm int|bRedraw|1|Should the button be redrawn? |
| 207 | return NULL; |
| 208 | CButton *pBut = GetButton(self); |
| 209 | if (!pBut) |
| 210 | return NULL; |
| 211 | GUI_BGN_SAVE; |
| 212 | pBut->SetButtonStyle(style, bRedraw); |
| 213 | GUI_END_SAVE; |
| 214 | return Py_BuildValue("i", style); |
| 215 | } |
| 216 | // @pymethod int|PyCButton|SetBitmap|Set the button's bitmap |
| 217 | static PyObject * |
| 218 | PyCButton_set_bitmap(PyObject *self, PyObject *args) |
nothing calls this directly
no test coverage detected