您的位置:

python为什么有tcl,python为什么有元组

本文目录一览:

请教python安装的 tcl/tk/tkinter

安装python时,tkinter是自带的、随同python自动安装。

python所带的代码编辑器本身就是用tkinter编写的。

为什么python是用tcl/tk做UI界面的

python是解释性语言,所以也要选一个解释性的界面语言,tk工具包是唯一的选择。

tk工具包比较小巧,只关注界面,不像qt或wx一样还包含很多python已有的内容。

尽可能少的bug。

如何解决Mac版关于python3.5.X的Tcl/Tk 的警告

ActiveTcl Downloads

从这里下载Tcl试试

下载8.6.4版本还会报错,我又试着装了下8.5.18,重启IDLE便没有提示不稳定了。

而且,也可以打印中文了:

lt;img src="" data-rawwidth="697" data-rawheight="755" class="origin_image zh-lightbox-thumb" width="697" data-original=""gt;

原因如下(google而来):

Stan W writes (NB. edited for brevity):

Over the last couple of days I have started using your great book with my two sons (13 and 15 years old).I'm reaching out to you with the following question because I have noticed other people asking about the same issue online, withat least one mentioning your book, so I think you posting the question and answer to your blog might help other people in additionto me and my sons.

We are using Mac OSX and have installed Python 3.3.3 from python.org, and are getting this message when opening IDLE:

"WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit IDLE and tkinter with Tcl/Tk on Mac OS X forcurrent information."

I have installed "Mac OS X 64-bit/32-bit Installer (3.3.3) for Mac OS X 10.6 and later" (file: python-3.3.3-macosx10.6.dmg) andinstalled the "ActiveTcl 8.6.1 for Mac OS X (10.5+, x8664/x86)" (file: ActiveTcl8.6.1.1.297588-macosx10.5-i386-x8664-threaded),but IDLE keeps showing the same error message.

Thank you very much for any help you can provide!

I'm not convinced ActiveTcl 8.6.1 is the right version to install - I suspect rather than installing the latest and greatest, you should be using version 8.5.15.0. Python (and thus IDLE) will probably be using the latest 8.5 version of Tcl/Tk (i.e. 8.5.x) — you're installing a completely different version (8.6), which it's not looking for at all. Hence even though you think you've re-installed, you'll still be getting the same error message.

Hope that helps.