Python - Tkinter over xrdp

Need help with C, C++, perl, python, etc?

Python - Tkinter over xrdp

Postby JoeJinis » 2018-11-14 13:03

Greetings,

I am learning about Python3 scripting/programming with this config :

My PC on win10, remote PC under my tv with Debian 9 on it.
I installed xrdp to get a remote graphical ui to play around with tkinter.

I wrote this very simple script :

#!/usr/bin/env python3
#coding: utf-8

from tkinter import *

fenetre = Tk()

label = Label(fenetre, text="Hello World")
label.pack()

fenetre.mainloop()


But I hit an issue

_tkinter.TclError: couldn't connect to display ":10.0"

I understand that's linked to xrdp because if I try it physically on the pc it works well.
Any idea or workaround? :/

Thank you !
JoeJinis
 
Posts: 1
Joined: 2018-11-14 12:53

Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable