summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/ctl/ctledit.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-03-21 16:25:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-03-21 16:25:23 (GMT)
commit1a7d5b12c0dff4b4ec139612713ce713bd696157 (patch)
treeb1c2f658a63397986eff8540617e927bdd16d034 /Mac/Modules/ctl/ctledit.py
parent0e12bcd24333f8575a40b4fd525a5c029c9d217c (diff)
downloadcpython-1a7d5b12c0dff4b4ec139612713ce713bd696157.zip
cpython-1a7d5b12c0dff4b4ec139612713ce713bd696157.tar.gz
cpython-1a7d5b12c0dff4b4ec139612713ce713bd696157.tar.bz2
Added a GetControlRect() method to controls which returns the bounding rectangle. To my surprise this call is missing from the C API...
Diffstat (limited to 'Mac/Modules/ctl/ctledit.py')
-rw-r--r--Mac/Modules/ctl/ctledit.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Modules/ctl/ctledit.py b/Mac/Modules/ctl/ctledit.py
index ea433e5..992612c 100644
--- a/Mac/Modules/ctl/ctledit.py
+++ b/Mac/Modules/ctl/ctledit.py
@@ -5,6 +5,9 @@ functions.append(f)
f = Method(Handle, 'as_Resource', (ControlHandle, 'ctl', InMode))
methods.append(f)
+f = Method(void, 'GetControlRect', (ControlHandle, 'ctl', InMode), (Rect, 'rect', OutMode))
+methods.append(f)
+
DisposeControl_body = """
if (!PyArg_ParseTuple(_args, ""))
return NULL;