Event handling for several windows

I have a program that uses matplotlib to plot two images.

figim24 = figure(figsize=(5,5))
figim70 = figure(figsize=(5,5))

I want an event loop that will be able to register which
of the two figures I mouse click in. When I only had one
figure I used


but that obviously only register events in figim24. Can anyone
guide me in the right direction for doing this?