Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62874

Re: Tkinter problem: TclError> couldn't connect to display ":0

References <b6e02836-6f08-4e9f-bd55-201c22ff42b3@googlegroups.com> <52c0aed1$0$29981$c3e8da3$5496439d@news.astraweb.com> <mailman.4709.1388359820.18130.python-list@python.org> <52c0e898$0$2877$c3e8da3$76491128@news.astraweb.com>
Date 2013-12-30 15:11 +1100
Subject Re: Tkinter problem: TclError> couldn't connect to display ":0
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4710.1388376680.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Dec 30, 2013 at 2:29 PM, Steven D'Aprano <steve@pearwood.info> wrote:
> On Mon, 30 Dec 2013 10:30:11 +1100, Chris Angelico wrote:
>
>> On Mon, Dec 30, 2013 at 10:22 AM, Steven D'Aprano
>> <steve+comp.lang.python@pearwood.info> wrote:
>>> So you need to X-forward from the remote machine to the machine you are
>>> physically on, or perhaps it's the other way (X is really weird). I
>>> have no idea how to do that, but would love to know.
>>
>> With SSH, that's usually just "ssh -X target", and it'll mostly work.
>
> Holy cow, it works! Sloooooooowly, but works.
>
>
> steve@runes:~$ ssh -X ando.pearwood.info
> steve@ando.pearwood.info's password:
> Last login: Mon Dec 30 10:10:13 2013 from orac
> [steve@ando ~]$ python2.7 test.py
> [steve@ando ~]$

On a LAN, it's not even slow! I've actually run VLC through ssh -X and
watched a DVD that was in a different computer's drive. That was fun.

You can even get a Windows X server and run Linux GUI programs on a
Windows client. *Very* useful if you're working with both types of
computer.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tkinter problem: TclError> couldn't connect to display ":0 Michael Matveev <mischamv@googlemail.com> - 2013-12-29 12:20 -0800
  Re: Tkinter problem: TclError> couldn't connect to display ":0 Chris Angelico <rosuav@gmail.com> - 2013-12-30 08:40 +1100
  Re: Tkinter problem: TclError> couldn't connect to display ":0 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-12-30 10:22 +1100
    Re: Tkinter problem: TclError> couldn't connect to display ":0 Chris Angelico <rosuav@gmail.com> - 2013-12-30 10:30 +1100
      Re: Tkinter problem: TclError> couldn't connect to display ":0 Steven D'Aprano <steve@pearwood.info> - 2013-12-30 03:29 +0000
        Re: Tkinter problem: TclError> couldn't connect to display ":0 Chris Angelico <rosuav@gmail.com> - 2013-12-30 15:11 +1100
        Re: Tkinter problem: TclError> couldn't connect to display ":0 Jason Swails <jason.swails@gmail.com> - 2013-12-30 00:59 -0500

csiph-web