0
import Tkinter as tk

Error : ModuleNotFoundError: No module named 'Tkinter'

David Gladson
  • 511
  • 9
  • 16

2 Answers2

-1

As others have stated if you are using python 3 the module name has changed to tkinter from Tkinter, so using import tkinter should solve your problem

IpSp00f3r
  • 73
  • 1
  • 2
  • 8
-1
from Tkinter import *
win=Tk()
win.title('My First GUI')
win.mainloop()
JKirchartz
  • 16,823
  • 7
  • 59
  • 87
sarmad
  • 1