本文目錄一覽:
請教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.
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-tw/n/247549.html