Skip to content
← Back to Community
I am having issues with Tkinter
Profile icon
AidenSeiler

I have read in multiple locations that repl.it supports Tkinter. I have tried running this code, or even just the import lines in both normal python and TKinter. I get the same error every time, regardless of anything I have tried.

Error -
Traceback (most recent call last):
File "main.py", line 28, in
from Tkinter import *
ModuleNotFoundError: No module named 'Tkinter'
exit status 1

Answered by RhinoRunner [earned 5 cycles]
View Answer
Voters
Profile icon
Kennthwang
Profile icon
AidenSeiler
Comments
hotnewtop
Profile icon
RhinoRunner

lowercase Tkinter to tkinter.

from Tkinter import * #wrong from tkinter import * #correct
Profile icon
AidenSeiler

@RhinoRunner
Thanks for the solution. Do you have any idea what is causing this new error? I did try different capitalization this time.

Traceback (most recent call last):
File "main.py", line 9, in
from canvas import Rectangle, CanvasText, Group, Window
ModuleNotFoundError: No module named 'canvas'
exit status 1

Profile icon
RhinoRunner

@AidenSeiler hmm, you might have to use pip in the shell to install it.
Also, if I answered your question, mark it as correct.

Profile icon
SixBeeps

The T in tkinter is lowercase.