[Python-checkins] CVS: python/dist/src/Mac/Modules/mlte mltesupport.py,1.3,1.4

Jack Jansen jackjansen@users.sourceforge.net
Mon, 16 Jul 2001 14:58:47 -0700


Update of /cvsroot/python/python/dist/src/Mac/Modules/mlte
In directory usw-pr-cvs1:/tmp/cvs-serv16337/Python/Mac/Modules/mlte

Modified Files:
	mltesupport.py 
Log Message:
The TNXDraw gworld argument is optional.

Index: mltesupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/mltesupport.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** mltesupport.py	2001/07/14 14:00:50	1.3
--- mltesupport.py	2001/07/16 21:58:44	1.4
***************
*** 75,78 ****
--- 75,92 ----
  }
  
+ /*
+ ** Parse an optional GWorld
+ */
+ static int
+ OptGWorldObj_Convert(PyObject *v, GWorldPtr *p_itself)
+ {	
+ 	if (v == Py_None)
+ 	{
+ 		*p_itself = NULL;
+ 		return 1;
+ 	}
+ 	return GWorldObj_Convert(v, p_itself);
+ }
+ 
  """
  
***************
*** 110,113 ****
--- 124,128 ----
  OptRgnHandle = OpaqueByValueType("RgnHandle", "OptResObj")
  GWorldPtr = OpaqueByValueType("GWorldPtr", "GWorldObj")
+ OptGWorldPtr = OpaqueByValueType("GWorldPtr", "OptGWorldObj")
  MlteInBuffer = VarInputBufferType('void *', 'ByteCount', 'l')