This is the code:
import Tkinter
#Tkinter is a module i did install it but it just doesnt work i tried it on visual studio and pycharm!
import tkMessageBox
#tkMessageBox is the asset of windows which can be imported to show using python
top = Tkinter.Tk()
# this code above me is the header of the message box.
def helloCallBack():
tkMessageBox.showinfo( "Hello Python", "Hello World")
#
B = Tkinter.Button(top, text ="Hello", command = helloCallBack)
B.pack()
top.mainloop()
This code is supposed to make a text box but it just doesn't work. This is what happens when I execute it:
(Traceback (most recent call last):
File "c:\Users\DELL\Desktop\New folder\Visualcode_test.py", line 1, in <module>
import Tkinter
ModuleNotFoundError: No module named 'Tkinter')