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

Function PyCButton_set_check

Pythonwin/win32control.cpp:142–155  ·  view source on GitHub ↗

@pymethod |PyCButton|SetCheck|Sets or resets the state of a radio button or check box.

Source from the content-addressed store, hash-verified

140}
141// @pymethod |PyCButton|SetCheck|Sets or resets the state of a radio button or check box.
142static PyObject *
143PyCButton_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.
157static PyObject *
158PyCButton_get_state(PyObject *self, PyObject *args)

Callers

nothing calls this directly

Calls 1

GetButtonFunction · 0.85

Tested by

no test coverage detected