| 191 | } |
| 192 | |
| 193 | static PyObject* vtkFlush(PyObject* self, PyObject* args) |
| 194 | { |
| 195 | (void)args; |
| 196 | if (!self || !PyObject_TypeCheck(self, &vtkPythonStdStreamCaptureHelperType)) |
| 197 | { |
| 198 | return nullptr; |
| 199 | } |
| 200 | |
| 201 | vtkPythonStdStreamCaptureHelper* wrapper = |
| 202 | reinterpret_cast<vtkPythonStdStreamCaptureHelper*>(self); |
| 203 | if (wrapper) |
| 204 | { |
| 205 | wrapper->Flush(); |
| 206 | } |
| 207 | return Py_BuildValue(""); |
| 208 | } |
| 209 | |
| 210 | static PyObject* vtkIsatty(PyObject* self, PyObject* args) |
| 211 | { |