pyplot catch windows 10 close windows event

 ̄綄美尐妖づ 提交于 2021-01-29 10:02:19

问题


how can I catch a close event from the windows close button in pyplot? the app is totally simple, but I want to stop plotting when the windows closer is clicked.

plt.axis([0, 100, 0, 255, -5, 5])
plt.ion()
plt.show()

mainloop:
   plt.plot (whatever)

来源:https://stackoverflow.com/questions/58012313/pyplot-catch-windows-10-close-windows-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!