import TKinker code example
Example 1: tkinter python 3
import tkinter as tk
obj = tk.Tk() # Creates a tkinter object
label = tk.Label(obj, text="This is a text button")
Example 2: hot to check tkinter verionin python
print(tkinter.TkVersion) # This will print a number which id the version