Ask Your Question

Revision history [back]

Handling non-key or mouse events

I am using a touchscreen to display images with imshow() to show a random picture from an external folder. I want to be able to exit imshow() when the screen is touched, rather than when a key is pressed. Is it possible to set up a custom event to kill imshow()?