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

Function PyCButton_get_state

Pythonwin/win32control.cpp:157–168  ·  view source on GitHub ↗

@pymethod int|PyCButton|GetState|Returns the state of the button.

Source from the content-addressed store, hash-verified

155}
156// @pymethod int|PyCButton|GetState|Returns the state of the button.
157static PyObject *
158PyCButton_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.
170static PyObject *
171PyCButton_set_state(PyObject *self, PyObject *args)

Callers

nothing calls this directly

Calls 2

GetButtonFunction · 0.85
GetStateMethod · 0.45

Tested by

no test coverage detected