| 2321 | // @pymethod |PyCStatusBarCtrl|SetSimple|Specify whether a status bar control displays simple text or displays all control parts set by a previous call to SetParts. |
| 2322 | |
| 2323 | static PyObject * |
| 2324 | PyCStatusBarCtrl_set_simple (PyObject *self, PyObject *args) |
| 2325 | { |
| 2326 | int bSimple; |
| 2327 | CStatusBarCtrl *pSB = GetStatusBarCtrl(self); |
| 2328 | |
| 2329 | if (!pSB) |
| 2330 | return NULL; |
| 2331 | |
| 2332 | // @pyparm int|bSimple||If non-zero, displays simple text. |
| 2333 | |
| 2334 | if (!PyArg_ParseTuple(args, |
| 2335 | "i:SetSimple", |
| 2336 | &bSimple)) |
| 2337 | return NULL; |
| 2338 | |
| 2339 | BOOL ok; |
| 2340 | GUI_BGN_SAVE; |
| 2341 | ok = pSB->SetSimple (bSimple); |
| 2342 | GUI_END_SAVE; |
| 2343 | |
| 2344 | if (!ok) { |
| 2345 | RETURN_ERR ("CStatusBarCtrl::SetSimple"); |
| 2346 | } |
| 2347 | |
| 2348 | RETURN_NONE; |
| 2349 | } |
| 2350 | |
| 2351 | // @pymethod |PyCStatusBarCtrl|SetText|Set the text in the given part of a status bar control. |
| 2352 |
nothing calls this directly
no test coverage detected