Ask coding questions

← Back to all posts
3
Tkinter in python
UmerkkkKhan (2)

Hii!! I want to run Tkinter in Python on live(repl.it), but when i write
" from tkinter import * " and its come with following error :

 Traceback (most recent call last):
File "main.py", line 3, in <module>
root = Tk()
File "/usr/local/lib/python3.6/tkinter/init.py", line 2017, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable

Commentshotnewtop
3
HappyFakeboulde (202)

The error message is basically a fancy way of the interpreter saying that tkinter doesn't work on repl.it.

1
Geocube101 (190)

I don't believe TKinter is supported in repl.it yet.