source/bases/Win32GUI.c
//-----------------------------------------------------------------------------
// DisplayMessageFromPythonObjects()
//   Display message from Python objects. Returns -1 as a convenience to the
// caller.
//-----------------------------------------------------------------------------
DisplayMessageFromPythonObjects()
Display message from Python objects. Returns -1 as a convenience to the
caller.
DisplayMessageFromPythonObjects () Display message from Python objects . Returns - 1 as a convenience to the caller .
static int DisplayMessageFromPythonObjects(PyObject *caption,
        PyObject *message)
{
    wchar_t *wcaption, *wmessage;
    wcaption = PyUnicode_AsWideCharString(caption, NULL);
    wmessage = PyUnicode_AsWideCharString(message, NULL);
    MessageBoxW(NULL, wmessage, wcaption, MB_ICONERROR);
    PyMem_Free(wcaption);
    PyMem_Free(wmessage);
    return -1;
}
static int DisplayMessageFromPythonObjects ( PyObject * caption , PyObject * message ) { wchar_t * wcaption , * wmessage ; wcaption = PyUnicode_AsWideCharString ( caption , NULL ) ; wmessage = PyUnicode_AsWideCharString ( message , NULL ) ; MessageBoxW ( NULL , wmessage , wcaption , MB_ICONERROR ) ; PyMem_Free ( wcaption ) ; PyMem_Free ( wmessage ) ; return -1 ; }
DisplayMessageFromPythonObjects()
Display message from Python objects.
DisplayMessageFromPythonObjects () Display message from Python objects .