When using turtle/tkinter in a remote instance of vscode, the window opens on the remote server's screen

233 Views Asked by At

I do not think that this is a bug, but I think this is what is suppose to happen. I was expecting the window to run on the host computer but show on the client's screen.

I had a raspberry pi 4 with

from tkinter import * #import tkinter

root = Tk()

root.title("Simple gui!") # set frame title
root.geometry("200x100") # set frame size

root.mainloop() # show frame

saved as a .py (python) file. I set up a vscode tunnel then connected to it from a windows 10 PC. I ran the code from the PC but the tkinter window opened on the raspberry pi.

Does anyone know how to make this not happen and make the tkinter window open on the PC instead?

Thank you.

I believe that this also happens with turtle.

0

There are 0 best solutions below