message.setUnicodeCodes( PyUnicode_AsUnicode(param), PyUnicode_GetSize( param ) ) ;
message.setUnicodeCodes( (unsigned short*)( PyUnicode_AsUnicode( param ) ), PyUnicode_GetSize( param ) ) ;
static PyObject* wpSocket_sysmessage( wpSocket* self, PyObject* args ){	if( !self->pSock )		return PyFalse;	QString message;	PyObject* param;	if( PyTuple_Size( args ) > 0 )		param = PyTuple_GetItem( args, 0 );	if( checkArgStr( 0 ) )	{		message = PyString_AsString( param );	}	else if( checkArgUnicode( 0 ) )	{		message.setUnicodeCodes( PyUnicode_AsUnicode(param), PyUnicode_GetSize( param ) ) ;		}	else	{		PyErr_BadArgument();		return NULL;	}	UINT16 color = 0x37;	UINT16 font = 3;	if( PyTuple_Size( args ) > 1 && checkArgInt( 1 ) )		color = PyInt_AsLong( PyTuple_GetItem( args, 1 ) );	if( PyTuple_Size( args ) > 2 && checkArgInt( 2 ) )		font = PyInt_AsLong( PyTuple_GetItem( args, 2 ) );	self->pSock->sysMessage( message, color, font );	return PyTrue;}