0

I know that I can check python tkinter version in two ways in python 3:

>>>import Tkinter
>>>tkinter.TkVersion

or

python3 -m tkinter

However they both provide only major version of Tkinter i.e. x.y or 8.6 for example. So my question is if there is a way to get the exact version of tkinter i.e x.y.z or 8.6.10, 8.5.9 etc. for example?

mikeskk
  • 124
  • 7

1 Answers1

2

Just for completeless, added the answer for those stumbling on this page

import tkinter
tcl = tkinter.Tcl()
print(tcl.call("info", "patchlevel"))
frankfm
  • 51
  • 2