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


Groups > comp.lang.python > #62876

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jason.swails@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.013
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'argument': 0.05; 'works.': 0.09; 'cc:addr:python-list': 0.11; 'mostly': 0.14; '&gt;&gt;': 0.16; 'cc:name:python list': 0.16; 'holy': 0.16; 'ssh': 0.16; 'ssh,': 0.16; 'subject:Tkinter': 0.16; 'to:addr:pearwood.info': 0.16; "to:name:steven d'aprano": 0.16; 'wrote:': 0.18; 'bit': 0.19; 'machine': 0.22; 'cc:addr:python.org': 0.22; 'subject:problem': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; '&gt;': 0.26; 'extension': 0.26; '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; 'steven': 0.31; 'know.': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'remote': 0.38; 'problems': 0.38; 'pm,': 0.38; 'that,': 0.38; 'how': 0.40; 'even': 0.60; 'love': 0.65; '30,': 0.65; 'subject:couldn': 0.84; 'subjected': 0.84; 'works!': 0.91; '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:to :cc:content-type; bh=YsybbemPBfyfVOKTQVHOLpBeMMHtQp7vIv1SrawmqKw=; b=sxXajb2occqavKx0XWR6djBXdxdcIWUQJRl/rOMli0MubCmKmBHGF8wJrP8Q9NyhXV 8QzotdY+RTZHTgHBXh6W0UvDys9QrsQZDjHEym/jbLDL7CBtL/7uvrT0X7Fv103hdJgh qVqQ+E4q0Paw0IkbD7D3oFZ9DNSWAo7puAFUyfcqY+oQpoUvG64RxLgbRNvpKhgskTIz 3CmaXLyb3FEz0atefSzSwYMWz1fTb3fMwEQNovXS3vd1LYm/WGjAlP1Eg73CmDly7OS9 8Zt8W2DnJq8+80454hQoMgqRvx67IYXhKRfhWZUm9OOcfuBBGwHoM45r3yp9xbzXsstY J42w==
MIME-Version 1.0
X-Received by 10.50.50.236 with SMTP id f12mr374985igo.8.1388383171286; Sun, 29 Dec 2013 21:59:31 -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 00:59:31 -0500
Subject Re: Tkinter problem: TclError> couldn't connect to display ":0
From Jason Swails <jason.swails@gmail.com>
To "Steven D'Aprano" <steve@pearwood.info>
Content-Type multipart/alternative; boundary=047d7bd75b3abc9cbc04eeba2568
Cc python list <python-list@python.org>
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.4711.1388383522.18130.python-list@python.org> (permalink)
Lines 78
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1388383522 news.xs4all.nl 2944 [2001:888:2000:d::a6]:34314
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62876

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, Dec 29, 2013 at 10: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.
>

I usually use "ssh -Y".  The -Y argument toggles trusted forwarding.  From
the ssh man-page:

     -Y      Enables trusted X11 forwarding.  Trusted X11 forwardings are
not subjected to the X11
             SECURITY extension controls.

I've found -Y is a bit faster than -X in my experience (I've never really
had many problems with X-forwarding on LANs in my experience -- even with
OpenGL windows)

Back to comp.lang.python | Previous | NextPrevious 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