gump->addRawLayout(QString::fromUcs2(PyUnicode_AS_UNICODE(item)));
gump->addRawLayout(QString::fromUcs2((ushort*)PyUnicode_AS_UNICODE(item)));
static PyObject* wpSocket_sendgump(wpSocket* self, PyObject* args) {	// Parameters:	// x, y, nomove, noclose, nodispose, serial, type, layout, text, callback, args	if( PyTuple_Size( args ) != 11 )		return PyFalse;	int x, y;	bool nomove, noclose, nodispose;	unsigned int serial, type;	PyObject *layout, *texts, *py_args;	char *callback;	if (!PyArg_ParseTuple(args, "iiBBBIIO!O!OsO!:socket.sendgump", &x, &y, &nomove, 		&noclose, &nodispose, &serial, &type, PyList_Type, &layout, PyList_Type, &texts, 		&callback, PyList_Type, &py_args)) {		return 0;	}	// Convert py_args to a tuple	py_args = PyList_AsTuple(py_args);	cPythonGump *gump = new cPythonGump( callback, py_args );	if( serial )		gump->setSerial( serial );	if( type )		gump->setType( type );	gump->setX( x );	gump->setY( y );	gump->setNoClose( noclose );	gump->setNoMove( nomove );	gump->setNoDispose( nodispose );	INT32 i;	for (i = 0; i < PyList_Size( layout ); ++i) {        PyObject *item = PyList_GetItem(layout, i);		if (PyString_Check(item)) {			gump->addRawLayout(PyString_AsString(item));		} else if (PyUnicode_Check(item)) {			gump->addRawLayout(QString::fromUcs2(PyUnicode_AS_UNICODE(item)));		} else {			gump->addRawLayout("");		}	}	for (i = 0; i < PyList_Size(texts); ++i) {        PyObject *item = PyList_GetItem(texts, i);		if (PyString_Check(item)) {			gump->addRawText(PyString_AsString(item));		} else if (PyUnicode_Check(item)) {			gump->addRawText(QString::fromUcs2(PyUnicode_AS_UNICODE(item)));		} else {			gump->addRawText("");		}	}	self->pSock->send( gump );	return PyInt_FromLong( gump->serial() );}