import tkinter top = tkinter.Tk(className='tkinter') print(tkinter.TkVersion) top.mainloop()