@berak @Alejandro_Silvestri thanks for clarifying !!!
But , is there any way to go into the source code of the waitKey function ???
As on my local workstation the waitKey code is present in compiled form(binary form ) (have .pyd extension ) and on the github repo of opencv , I am unable to find the code …