Writing cross-platform Tkinter
As you've seen so far, Tkinter mostly works identically across platforms, and even has the capability to do the right thing on each platform with minimal effort. However, there are some minor issues to be aware of as you support a Tkinter application across multiple operating systems. In this section, we'll explore the more significant differences.
Tkinter version differences across platforms
Even if you install the latest version of Python from python.org, the actual version of Tcl/Tk installed on your system may vary widely. This can cause problems if you rely on features in the most recent Tk.
The following chart shows the versions installed by default on different systems:
OS | Tk version |
Windows | 8.6.6 |
macOS | 8.5.9 |
Debian Linux 9 | 8.6.6 |
Ubuntu Linux 18.04 | 8.6.8 |
Windows and most Linux distributions are shipping a relatively recent version of 8.6, but macOS defaults to use its system-installed Tk version, which is 8.5.9. This can be a problem if you want to use any of the...