MCPcopy Create free account
hub / github.com/mhammond/pywin32 / PyCButton_set_style

Function PyCButton_set_style

Pythonwin/win32control.cpp:199–215  ·  view source on GitHub ↗

@pymethod int|PyCButton|SetButtonStyle|Sets the style of the button.

Source from the content-addressed store, hash-verified

197}
198// @pymethod int|PyCButton|SetButtonStyle|Sets the style of the button.
199static PyObject *
200PyCButton_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
217static PyObject *
218PyCButton_set_bitmap(PyObject *self, PyObject *args)

Callers

nothing calls this directly

Calls 1

GetButtonFunction · 0.85

Tested by

no test coverage detected