NavTypeListHandle typeList = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
OSType fileCreator;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
NavEventUPP eventProc = NULL;
OSErr err;
- if ( kw ) {
+ if ( kw && PyObject_IsTrue(kw) ) {
if (!PyArg_ParseTuple(args, "l", &action))
return NULL;
dict = kw;
NavEventUPP eventProc = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
NavEventUPP eventProc = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
NavTypeListHandle typeList = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
NavObjectFilterUPP filterProc = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
NavObjectFilterUPP filterProc = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
NavObjectFilterUPP filterProc = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
NavEventUPP eventProc = NULL;
OSErr err;
- if ( kw ) {
- if (!PyArg_ParseTuple(args, ""))
+ if ( kw && PyObject_IsTrue(kw) ) {
+ if (!PyArg_ParseTuple(args, ";either keyword arguments or dictionary expected"))
return NULL;
dict = kw;
} else if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict))
}
#if 0
-XXXX I don't know what to do with the void * argument
+/* XXXX I don't know what to do with the void * argument */
static char nav_NavCustomControl__doc__[] =
""
;