0
I started messing around in the library tkinter
python recently, but I can’t because the library is not found.
The error message shown is as follows: ModuleNotFoundError: No module named 'tkinter'
.
I have tried to rename Tkinter, manually install the library through sudo apt-get install python3-tk
, but still with the same mistake.
I’m using python 3.7 in Pycharm.
Code:
from tkinter import *
class Application:
def __init__(self, master=None):
pass
root = Tk()
Application(root)
root.mainloop()