diff Lib/stdwin/rect.py @ 1335:4192e24ec562 legacy-trunk

XEvent.py: Added support for ExposeEvent. profile.py: Some speed improvements (I hope). rect.py: Bug fix in union().
author Sjoerd Mullender <sjoerd@acm.org>
date Wed, 25 Aug 1993 14:09:01 +0000
parents b120cdd30fbc
children
line wrap: on
line diff
--- a/Lib/stdwin/rect.py	Tue Aug 03 15:11:36 1993 +0000
+++ b/Lib/stdwin/rect.py	Wed Aug 25 14:09:01 1993 +0000
@@ -46,7 +46,7 @@
 # This works with a list or tuple argument.
 #
 def union(list):
-	(left, top), (right, bottom) = empty
+	(left, top), (right, bottom) = list[0]
 	for (l, t), (r, b) in list[1:]:
 		if not is_empty(((l, t), (r, b))):
 			if l < left: left = l