Ask coding questions

← Back to all posts
does tkinter work
zinodyta1

Does tkinter work on repl.it? I tried writing some simple tkinter codes, and errors like "_tkinter.TclError: no display name and no $DISPLAY environment variable" comes up. I have not found a fix for it yet. I'm wondering if tkinter just isn't a part of the python here on repl.it.

Answered by replitcode [earned 5 cycles]
View Answer
Voters
Mechanicalverte
softwareinc3
yas_cxle
Neel76
mjames1911
gabepalks01
PepeVelez
georget172
zinodyta1
Comments
hotnewtop
replitcode

You could also use something called REMI GUI... found here... https://remi.readthedocs.io/

Yamboy1

No tkinter isn't currently supported, however if you do want a gui you could use python turtle

RCubed

tkinter is supported on Repl. However, you need to select tkinter as the language you want to use within the file as opposed to python in general.

AdityanSwamina1

@RCubed Yes, this is correct. It worked for me, thanks

ash15khng

Tkinter doesn't work for now, only REMI and Python Turtle are supported.