XEvent.py: Added support for ExposeEvent.

profile.py: Some speed improvements (I hope).
rect.py: Bug fix in union().
This commit is contained in:
Sjoerd Mullender 1993-08-25 14:09:01 +00:00
parent f64992e95d
commit 4fddf33c87
3 changed files with 35 additions and 18 deletions

View file

@ -46,7 +46,7 @@ def intersect(list):
# 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