aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/matplotlib/py2/src/_windowing.cpp
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2025-02-11 13:26:52 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2025-02-11 13:57:59 +0300
commitf895bba65827952ed934b2b46f9a45e30a191fd2 (patch)
tree03260c906d9ec41cdc03e2a496b15d407459cec0 /contrib/python/matplotlib/py2/src/_windowing.cpp
parent5f7060466f7b9707818c2091e1a25c14f33c3474 (diff)
downloadydb-f895bba65827952ed934b2b46f9a45e30a191fd2.tar.gz
Remove deps on pandas
<https://github.com/ydb-platform/ydb/pull/14418> <https://github.com/ydb-platform/ydb/pull/14419> \-- аналогичные правки в gh Хочу залить в обход синка, чтобы посмотреть удалится ли pandas в нашей gh репе через piglet commit_hash:abca127aa37d4dbb94b07e1e18cdb8eb5b711860
Diffstat (limited to 'contrib/python/matplotlib/py2/src/_windowing.cpp')
-rw-r--r--contrib/python/matplotlib/py2/src/_windowing.cpp64
1 files changed, 0 insertions, 64 deletions
diff --git a/contrib/python/matplotlib/py2/src/_windowing.cpp b/contrib/python/matplotlib/py2/src/_windowing.cpp
deleted file mode 100644
index 7a20baa0a39..00000000000
--- a/contrib/python/matplotlib/py2/src/_windowing.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-#include "Python.h"
-#include <windows.h>
-
-static PyObject *
-_GetForegroundWindow(PyObject *module, PyObject *args)
-{
- HWND handle = GetForegroundWindow();
- if (!PyArg_ParseTuple(args, ":GetForegroundWindow"))
- {
- return NULL;
- }
- return PyLong_FromSize_t((size_t)handle);
-}
-
-static PyObject *
-_SetForegroundWindow(PyObject *module, PyObject *args)
-{
- HWND handle;
- if (!PyArg_ParseTuple(args, "n:SetForegroundWindow", &handle))
- {
- return NULL;
- }
- if (!SetForegroundWindow(handle))
- {
- return PyErr_Format(PyExc_RuntimeError,
- "Error setting window");
- }
- Py_INCREF(Py_None);
- return Py_None;
-}
-
-static PyMethodDef _windowing_methods[] =
-{
- {"GetForegroundWindow", _GetForegroundWindow, METH_VARARGS},
- {"SetForegroundWindow", _SetForegroundWindow, METH_VARARGS},
- {NULL, NULL}
-};
-
-#if PY_MAJOR_VERSION >= 3
-
-static struct PyModuleDef moduledef = {
- PyModuleDef_HEAD_INIT,
- "_windowing",
- "",
- -1,
- _windowing_methods,
- NULL,
- NULL,
- NULL,
- NULL
-};
-
-PyMODINIT_FUNC PyInit__windowing(void)
-{
- PyObject *module = PyModule_Create(&moduledef);
- return module;
-}
-
-#else
-PyMODINIT_FUNC init_windowing()
-{
- Py_InitModule("_windowing", _windowing_methods);
-}
-#endif