Load image sequence

thank you so much it now opening in the same window but the image sequence is not playing, only 1 image is being displayed. If I try to drag and maximize or minimize the window it is not responding and the window exists. Does it have anything to do with the version of python and opencv? I’m using python 3.9 and the latest opencv 4.5.2.54