I’m trying to run tkinter in a virtual environment on project idx. However, when I try to run any code when I’m drawing a canvas, I get this error:
Traceback (most recent call last):
File “/home/user/tkintergame/game/main.py”, line 170, in
root = Tk()
^^^^
File “/usr/lib/python3.12/tkinter/init.py”, line 2346, in init
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: no display name and no $DISPLAY environment variable
Is it possible for project idx to create a tkinter window? If so, how can I do that?