What Terminal does Python IDLE use on Windows

强颜欢笑 提交于 2020-01-15 11:30:11

问题


I was helping a fellow Stack Overflow-er today and I noticed that I don't know what terminal IDLE uses in Windows. I am tacitly assuming that Python didn't write their own terminal for Windows, and that they probably use an API that gives them some version of cmd or powershell. I verified that the interpreter runs on cmd, but I don't know about IDLE.

What terminal does IDLE use in Windows?


回答1:


IDLE is not built on an external shell or terminal, but on the Tkinter GUI toolkit.

The source code to the editor window can be read here; for the interactive shell, see here.



来源:https://stackoverflow.com/questions/41449856/what-terminal-does-python-idle-use-on-windows

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