If you are using macOS 12 Monterey or later,you may see problems with file open and save dialogswhen using IDLE or other tkinter-based applications.The most recent versions of python.org installers(for 3.10.0 and 3.9.8) have patched versionsof Tk to avoid these problems. They should be fixedin an upcoming Tk 8.6.12 release.
Instalar Tkinter Para Python En Mac
If you are using a Python from any current python.orgPython installer for macOS (3.10.0+ or 3.9.0+),no further action is needed to use IDLE or tkinter.A built-in version of Tcl/Tk 8.6 will be used.
ActiveState provides binary distributions of Tcl/Tk which are upward compatiblewith and generally more up-to-date than those provided by Apple in macOSreleases. This version of Tcl/Tk includes fixes for some critical problemsthat you may encounter using tkinter or IDLE (see Apple 8.5.9 below).You can download an installer for this release fromthe ActiveState web site.Note that ActiveState Community Edition binaries are not open source andare covered by an ActiveState license. You should read the licensebefore downloading to verify that your usage complies with its terms of use.As of Python 3.7.0, 3.6.8, and 2.7.16, no current Python installers for macOSdownloadable from python.org make use of this or any other external versionof Tcl/Tk.
There is _tkinter and Tkinter - both work on Py 3.x But to be safe- Download Loopy and change your python root directory(if you're using an IDE like PyCharms) to Loopy's installation directory. You'll get this library and many more.
Running python -m tkinter from the command line should open a windowdemonstrating a simple Tk interface, letting you know that tkinter isproperly installed on your system, and also showing what version of Tcl/Tk isinstalled, so you can read the Tcl/Tk documentation specific to that version.
Themed Tk (Ttk) is a newer family of Tk widgets that provide a much betterappearance on different platforms than many of the classic Tk widgets.Ttk is distributed as part of Tk, starting with Tk version 8.5. Pythonbindings are provided in a separate module, tkinter.ttk.
To install Tkinter, we need Python pre-installed. Tkinter actually comes along when we install Python. While installing Python, we need to check the td/tk and IDLE checkbox. This will install the tkinter and we need not install it separately. 2ff7e9595c
תגובות