![]() exists ( '/usr/X11R5/include' ) : - include_dirs. append ( '/usr/X11R6/include' ) - added_lib_dirs. exists ( '/usr/X11R6/include' ) : - include_dirs. append ( '/usr/openwin/include' ) - added_lib_dirs. append (dir ) - # Check for various platform-specific directories - if host_platform = 'sunos5' : - include_dirs. detect_tkinter_darwin (inc_dirs, lib_dirs ) ) : - return # Assume we haven't found any of the libraries or include files # The versions with dots are used on Unix, and the versions - 1747, 22 1744, 6 class PyBuildExt (build_ext ) : if dir not in include_dirs : if (host_platform = 'darwin' and - self. Only one Tkinter will be built on # Darwin - either AquaTk, if it is found, or X11 based Tk. b /setup - 1699, 9 1699, 6 class PyBuildExt (build_ext ) : # Rather than complicate the code below, detecting and building # AquaTk is a separate method. ![]() System bin / "pip3", "list", "-format=columns" end end Lib_cellar = prefix / "Frameworks/amework/Versions/ #", "-c", "import zlib" # Unset these so that installing pip and setuptools puts them where we want # and not into some other Python the user has installed. Sha256 "66a8fd76f28977bb664b098372daef2b27f60dc4d1688cfab7b37a09448f0e9d" end # Homebrew's tcl-tk is built in a standard unix fashion (due to link errors) # so we have to stop python from searching for frameworks and linking against # X11. Xcode-only systems need different flags.ĭepends_on "tcl-tk" # as apple's one is shiiiiite Sha256 "b07ec3a40f58fa317e1bb937992dc0dca7d60812c60de99bde14fbadb6c27cc5" = > :sierra end # setuptools remembers the build flags python is built with and uses them to # build packages later. 将“/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/python.rb”路径下的脚本替换为如下,记得备份 class Python :mojave 对于homebrew安装的python3,以下命令不再支持 brew install python3 -with-tcl-tk Set TK SILENCE DEPRECATION =1 to suppress this warning. 可能会出现如下问题, The system version of Tk is deprecated and may be removed in a future release. pack (padx = 20, pady = 20 ) # Pack it into the window Label (root, text = "Hello 世界!" ) # Create a text label Puts "FATAL ERROR:\n\nThis program requires wish!"Ī) by explaining what "" means on a syntactic level (it seems to be checking if wish exists, but I don't know where exactly it is looking)ī) by giving me a hint what wish-files I should have other than wish.exe and where they should be placed.运行如下demo时, import tkinter as tk # Python 3.x Version ![]() When I looked into the source code of woz.tcl, I realized, that I can't quite figure out all of the syntax: The reason why I am puzzled is that I do have a wish.exe and wish85.exe in C:\Tcl\bin (this path has also been added to the environment variables). When starting woz.tcl from the command line, at least I get an error: "This program requires wish!". The Woz-program (woz.tcl) used to run a few months ago and now I am puzzled to see that it does not do so anymore. I work on Windows 10 and have currently installed Tcl 8.5.18.0 - x86. I am new to tcl and simply trying to install a complete program (this one: ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |