-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On windows, a preview doesn't close when you quit. #575
Comments
Fixed issue Zulko#575. Added two pg.quit statements at lines 146 and 162. For line 146, this statement adds quit functionality for " event.type == pg.KEYDOWN and event.key == pg.K_ESCAPE". This allows the window to close whenever the event triggers. For line 162, once the for loop ends (the video ends), the window closes instead of crashing.
The |
…otebook in Windows (#1537) * Update preview.py, fix issue #575 Fixed issue #575. Added two pg.quit statements at lines 146 and 162. For line 146, this statement adds quit functionality for " event.type == pg.KEYDOWN and event.key == pg.K_ESCAPE". This allows the window to close whenever the event triggers. For line 162, once the for loop ends (the video ends), the window closes instead of crashing. Co-authored-by: jacobwhiteman17 <54951159+jacobwhiteman17@users.noreply.github.com>
I can't reproduce this problem with moviepy master and latest Jupyter Notebook version ( |
Thanks. |
I'm using windows, Python 3.6 and moviepy 0.2.3.2, run through jupyter notebook.
clip.ipython_display() runs but doesn't produce any visible result.
clip.preview() pops up a PyGame window. The command ends on ESC. But the window doesn't pop down. I can close it by importing pygame and calling pygame.quit()
The text was updated successfully, but these errors were encountered: