[Python-checkins] CVS: python/dist/src/Mac/Modules/mlte _Mltemodule.c,1.8,1.8.4.1 mltescan.py,1.6,1.6.4.1 mltesupport.py,1.7,1.7.4.1
Jack Jansen
jackjansen@users.sourceforge.net
Wed, 27 Feb 2002 15:16:10 -0800
- Previous message: [Python-checkins] CVS: python/dist/src/Mac/Modules/menu _Menumodule.c,1.7,1.7.4.1 menuedit.py,1.8,1.8.20.1 menuscan.py,1.11,1.11.4.1 menusupport.py,1.14,1.14.4.1
- Next message: [Python-checkins] CVS: python/dist/src/Mac/Modules/res _Resmodule.c,1.7,1.7.4.1 resscan.py,1.14,1.14.4.1 ressupport.py,1.18,1.18.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Mac/Modules/mlte
In directory usw-pr-cvs1:/tmp/cvs-serv2617/mlte
Modified Files:
Tag: release22-maint
_Mltemodule.c mltescan.py mltesupport.py
Log Message:
Backport of 1.7:
Added some support for unicode arguments.
Index: _Mltemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/_Mltemodule.c,v
retrieving revision 1.8
retrieving revision 1.8.4.1
diff -C2 -d -r1.8 -r1.8.4.1
*** _Mltemodule.c 18 Dec 2001 15:37:09 -0000 1.8
--- _Mltemodule.c 27 Feb 2002 23:16:08 -0000 1.8.4.1
***************
*** 1007,1010 ****
--- 1007,1035 ----
}
+ static PyObject *TXNObj_TXNEchoMode(TXNObjectObject *_self, PyObject *_args)
+ {
+ PyObject *_res = NULL;
+ OSStatus _err;
+ UniChar iEchoCharacter;
+ TextEncoding iEncoding;
+ Boolean iOn;
+ #ifndef TXNEchoMode
+ PyMac_PRECHECK(TXNEchoMode);
+ #endif
+ if (!PyArg_ParseTuple(_args, "hlb",
+ &iEchoCharacter,
+ &iEncoding,
+ &iOn))
+ return NULL;
+ _err = TXNEchoMode(_self->ob_itself,
+ iEchoCharacter,
+ iEncoding,
+ iOn);
+ if (_err != noErr) return PyMac_Error(_err);
+ Py_INCREF(Py_None);
+ _res = Py_None;
+ return _res;
+ }
+
static PyObject *TXNObj_TXNDoFontMenuSelection(TXNObjectObject *_self, PyObject *_args)
{
***************
*** 1252,1255 ****
--- 1277,1282 ----
{"TXNActivate", (PyCFunction)TXNObj_TXNActivate, 1,
"(TXNFrameID iTXNFrameID, TXNScrollBarState iActiveState) -> None"},
+ {"TXNEchoMode", (PyCFunction)TXNObj_TXNEchoMode, 1,
+ "(UniChar iEchoCharacter, TextEncoding iEncoding, Boolean iOn) -> None"},
{"TXNDoFontMenuSelection", (PyCFunction)TXNObj_TXNDoFontMenuSelection, 1,
"(TXNFontMenuObject iTXNFontMenuObject, SInt16 iMenuID, SInt16 iMenuItem) -> None"},
Index: mltescan.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/mltescan.py,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -C2 -d -r1.6 -r1.6.4.1
*** mltescan.py 18 Dec 2001 15:39:09 -0000 1.6
--- mltescan.py 27 Feb 2002 23:16:08 -0000 1.6.4.1
***************
*** 94,100 ****
"TXNMatchTextRecord", #TBD
"TXNBackground", #TBD
- "UniChar", #TBD
- "UniCharCount", #TBD
- "UniChar_ptr", #TBD
"TXNFindUPP",
"ATSUStyle", #TBD
--- 94,97 ----
Index: mltesupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/mlte/mltesupport.py,v
retrieving revision 1.7
retrieving revision 1.7.4.1
diff -C2 -d -r1.7 -r1.7.4.1
*** mltesupport.py 18 Dec 2001 15:39:33 -0000 1.7
--- mltesupport.py 27 Feb 2002 23:16:08 -0000 1.7.4.1
***************
*** 130,133 ****
--- 130,135 ----
OptFSSpecPtr = OpaqueByValueType("FSSpec *", "OptFSSpecPtr")
OptRectPtr = OpaqueByValueType("Rect *", "OptRectPtr")
+
+ UniChar = Type("UniChar", "h") # XXXX For now...
# ADD object type here
- Previous message: [Python-checkins] CVS: python/dist/src/Mac/Modules/menu _Menumodule.c,1.7,1.7.4.1 menuedit.py,1.8,1.8.20.1 menuscan.py,1.11,1.11.4.1 menusupport.py,1.14,1.14.4.1
- Next message: [Python-checkins] CVS: python/dist/src/Mac/Modules/res _Resmodule.c,1.7,1.7.4.1 resscan.py,1.14,1.14.4.1 ressupport.py,1.18,1.18.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]