agarzo 0 Newbie Poster

Hi,

I'm new in this forum and a beginner in python, but I need your help. I'm doing a program using opencv libraries. In this library there are some functions to create a window, to display a cam iamges. I want to control if the user is closing the window using the 'X' button. My program has to run in Linux or Windows, and I use the handle of the window to control this, but it only works in Windows. The program gives me an error under Linux. The windows stays blocked and says that the window can't be closed without forcing the event.

Does anybody know another way to control the 'X' button? Or how to control that the window has been closed?

Thank you for your help!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.