diff --git a/python/src/Window.cpp b/python/src/Window.cpp index 6e16e654..a15c735e 100644 --- a/python/src/Window.cpp +++ b/python/src/Window.cpp @@ -151,7 +151,9 @@ PySfWindow_init(PySfWindow *self, PyObject *args, PyObject *kwds) PySfWindowSettings *Params; if (args != NULL) - { + { + if (PyTuple_Size(args) == 0) + return 0; if (PyArg_ParseTuple(args, "l|O!:Window.__new__", &Handle, &PySfWindowSettingsType, &Params)) return 0; PyErr_Clear();