Merging appropriate 2.1.1 fixes back into the main trunk.
diff --git a/Mac/Lib/FrameWork.py b/Mac/Lib/FrameWork.py
index 4735fc4..3ee118d 100644
--- a/Mac/Lib/FrameWork.py
+++ b/Mac/Lib/FrameWork.py
@@ -1010,6 +1010,10 @@
 	def close(self):
 		self.do_postclose()
 		
+	def do_postclose(self):
+		self.dlg = None
+		Window.do_postclose(self)
+		
 	def do_itemhit(self, item, event):
 		print 'Dialog %s, item %d hit'%(self.dlg, item)