Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Python - Tkinter over xrdp

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
JoeJinis
Posts: 1
Joined: 2018-11-14 12:53

Python - Tkinter over xrdp

#1 Post by JoeJinis »

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 !

Post Reply