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

Path csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.062
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'works.': 0.09; 'cc:addr :python-list': 0.11; 'gui': 0.12; 'mostly': 0.14; 'windows': 0.15; "computer's": 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'holy': 0.16; 'ssh': 0.16; 'ssh,': 0.16; 'subject:Tkinter': 0.16; 'wrote:': 0.18; 'machine': 0.22; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'subject:problem': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'chris': 0.29; 'on,': 0.29; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'usually': 0.31; "d'aprano": 0.31; 'python2.7': 0.31; 'steven': 0.31; 'know.': 0.32; 'run': 0.32; 'linux': 0.33; 'computer.': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'useful': 0.36; 'remote': 0.38; 'server': 0.38; 'pm,': 0.38; 'that,': 0.38; 'how': 0.40; 'even': 0.60; "you're": 0.61; 'different': 0.65; 'love': 0.65; '30,': 0.65; 'dvd': 0.78; 'drive.': 0.84; 'email name:steve': 0.84; 'subject:couldn': 0.84; 'watched': 0.91; 'works!': 0.91; 'to:none': 0.92; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=YoMYBDj5dVgo5kN2gYbe8i2O+VAH0uNd0pNDHeK+NSY=; b=xF1z9MwqkIDl+3SIGu+BAdgeFE2PwLZ6z5UUqb0nF/gPavmTsO8Cv1MkF5DSI0muzo qry8dK7Al+7r/eapx+Ek//+xhrsFIaXTxL8HYjxD2o6MfRKTeHVvqzK6KlX/l2PFJyPe usHp7p+0QNHBtr+jlOerNpOhzedxatwxM8gzPrQ2KCEfISTuPLuRkrrcR3vd5ET2ZPRn tBglmnkV4uWbVpLDQXkXlhGEiC6pk0gbP/GJSd5gt4HrEpvJAKjyUPGA43XHdFiYJVph E0OOnKbyUUbLyLZpy24XY8Mvv9VfQ2ctnccNtEcblLWIwLLz4fX87F1Y3H0G0i6UqBYz 8/Iw==
MIME-Version 1.0
X-Received by 10.66.129.133 with SMTP id nw5mr20278111pab.98.1388376671064; Sun, 29 Dec 2013 20:11:11 -0800 (PST)
In-Reply-To <52c0e898$0$2877$c3e8da3$76491128@news.astraweb.com>
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 Mon, 30 Dec 2013 15:11:10 +1100
Subject Re: Tkinter problem: TclError> couldn't connect to display ":0
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4710.1388376680.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388376680 news.xs4all.nl 2856 [2001:888:2000:d::a6]:56636
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62874

Show key headers only | 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