Python IDLE 在 Windows 上使用什么终端 [英] What Terminal does Python IDLE use on Windows

查看:47
本文介绍了Python IDLE 在 Windows 上使用什么终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在帮助堆栈溢出-er today 我注意到我不知道终端 IDLE 在 Windows 中使用什么.我默认假设 Python 没有为 Windows 编写自己的终端,并且他们可能使用的 API 为他们提供了某些版本的 cmdpowershell.我验证了解释器在 cmd 上运行,但我不知道 IDLE.

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.

IDLE 在 Windows 中使用什么终端?

What terminal does IDLE use in Windows?

推荐答案

IDLE 不是建立在外部 shell 或终端上,而是建立在 Tkinter GUI 工具包.

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

编辑器窗口的源码可以阅读这里;有关交互式 shell,请参阅此处.

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

这篇关于Python IDLE 在 Windows 上使用什么终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆