Argument type for SetPort was wrong (WindowPtr in stead of GrafPtr).
diff --git a/Mac/Modules/qd/qdedit.py b/Mac/Modules/qd/qdedit.py
index ea4d828..d9e4a15 100644
--- a/Mac/Modules/qd/qdedit.py
+++ b/Mac/Modules/qd/qdedit.py
@@ -1,5 +1,5 @@
 f = Function(void, 'SetPort',
-	(WindowPtr, 'thePort', InMode),
+	(GrafPtr, 'thePort', InMode),
 )
 functions.append(f)