The following constants contain Tk toolkit version information:
TK_MAJOR_VERSION
Tk major version number (e.g., 8)
TK_MINOR_VERSION
Tk minor version number (e.g., 0)
TK_RELEASE_LEVEL
Release level: 0 for alpha, 1 for beta, 2 for final/patch
TK_RELEASE_SERIAL
Version number that changes with each patch (e.g., 2)
TK_VERSION
Tk version as a string (e.g., “8.0”)
TK_PATCH_LEVEL
Tk version and patch level as a string (e.g., “8.0p2”)