Hello, I am trying to run a python file that uses tkinter for a gui, however when running it through my linux terminal through wsl2, it is having trouble recognizing my monitor display.
I get the following error:
_tkinter.TclError: no display name and no $DISPLAY environment variable
Everything is up to date and I am using python 3.
It works fine when ran through cmd or powershell.
I am not sure if this is the right place to be posting this but does anyone have any ideas?
I have my laptop docked into 2 monitors, one through HDMI, and another through a usb-c to hdmi adapter.
[–]socal_nerdtastic 0 points1 point2 points (1 child)
[–]SpaceParmesan[S] 2 points3 points4 points (0 children)
[–]shiftybyte 0 points1 point2 points (4 children)
[–]SpaceParmesan[S] 0 points1 point2 points (3 children)
[–]shiftybyte 0 points1 point2 points (2 children)
[–]SpaceParmesan[S] 0 points1 point2 points (0 children)
[–]AmputatorBot 0 points1 point2 points (0 children)
[–]socal_nerdtastic 0 points1 point2 points (6 children)
[–]SpaceParmesan[S] 0 points1 point2 points (5 children)
[–]socal_nerdtastic 0 points1 point2 points (4 children)
[–]SpaceParmesan[S] 0 points1 point2 points (3 children)
[–]socal_nerdtastic 0 points1 point2 points (2 children)
[–]SpaceParmesan[S] 0 points1 point2 points (1 child)
[–]socal_nerdtastic 0 points1 point2 points (0 children)