summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/carbonevt/CarbonEvtsupport.py
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2002-01-03 20:45:47 (GMT)
committerJust van Rossum <just@letterror.com>2002-01-03 20:45:47 (GMT)
commit43c2de230d926bf3befc7dc55b51e7b37ee5a58f (patch)
tree793916fdf93ef636f8cbb5a2293ce38acdac3cf6 /Mac/Modules/carbonevt/CarbonEvtsupport.py
parent8edfc542f098f98754a959d3414238eab152cb88 (diff)
downloadcpython-43c2de230d926bf3befc7dc55b51e7b37ee5a58f.zip
cpython-43c2de230d926bf3befc7dc55b51e7b37ee5a58f.tar.gz
cpython-43c2de230d926bf3befc7dc55b51e7b37ee5a58f.tar.bz2
fixed SetEventParameter() signature: removed unneccesary length arg.
Diffstat (limited to 'Mac/Modules/carbonevt/CarbonEvtsupport.py')
-rw-r--r--Mac/Modules/carbonevt/CarbonEvtsupport.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mac/Modules/carbonevt/CarbonEvtsupport.py b/Mac/Modules/carbonevt/CarbonEvtsupport.py
index 0ce2af8..8ed13eb 100644
--- a/Mac/Modules/carbonevt/CarbonEvtsupport.py
+++ b/Mac/Modules/carbonevt/CarbonEvtsupport.py
@@ -34,6 +34,12 @@ EventTypeSpec_ptr = OpaqueType("EventTypeSpec", "EventTypeSpec")
void_ptr = stringptr
# here are some types that are really other types
+class MyVarInputBufferType(VarInputBufferType):
+ def passInput(self, name):
+ return "%s__len__, %s__in__" % (name, name)
+
+MyInBuffer = MyVarInputBufferType('char', 'long', 'l') # (buf, len)
+
EventTime = double
EventTimeout = EventTime
EventTimerInterval = EventTime