Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #62868
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.032 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'root': 0.05; '__init__': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'interactive,': 0.16; 'subject:Tkinter': 0.16; 'wrote:': 0.18; 'shell': 0.22; 'cc:addr:python.org': 0.22; 'error': 0.23; 'subject:problem': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'sort': 0.25; 'skip:" 30': 0.26; 'skip:_ 20': 0.27; 'header:In-Reply- To:1': 0.27; 'installed': 0.27; 'michael': 0.29; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'gives': 0.31; 'python"': 0.31; 'file': 0.32; 'worked': 0.33; 'running': 0.33; 'skip:_ 10': 0.34; 'display': 0.35; 'received:google.com': 0.35; 'version': 0.36; "couldn't": 0.39; 'skip:p 20': 0.39; 'skip:x 10': 0.40; 'kind': 0.63; '30,': 0.65; 'happening?': 0.84; 'subject:couldn': 0.84; 'graphical': 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=nGPWAw2hDm2DfL5pz5fZaVafkxrE1b2yqgMPQtgk6II=; b=FX/M+0+Gbb8mDpw8GJXyDPGJb44SIA/DNOWbJpE9EC8zAEWcMoRYzEYb36nFOHfp5j 1bZtaKMcAqIMOjTSYxrrfYn0Zt5xRisSxwOXqbjUIIstRUjpF4U2HKJ3El9pO2J39ySh mnlnCD1nAjD5VaFh0COa8Cf5ah5ZwTuIdXcCvJBhTdjYMzlkpWZsOvs08DWeHv0TvP9H P9Qv4GH6ulIXMXnFCYX6HyvBPbTmZe+gEMyZEnx3iImG5Pc+6Qy3oBdDL2kB+cTZfnM2 zp4adsHitPjR3Jaly0+ImD3jDQTaPPHPvKIxdaA2MVDQUnyfQzVGwt6DTsDVhvz98aXM ZG8Q== |
| MIME-Version | 1.0 |
| X-Received | by 10.67.21.226 with SMTP id hn2mr65623575pad.69.1388353256725; Sun, 29 Dec 2013 13:40:56 -0800 (PST) |
| In-Reply-To | <b6e02836-6f08-4e9f-bd55-201c22ff42b3@googlegroups.com> |
| References | <b6e02836-6f08-4e9f-bd55-201c22ff42b3@googlegroups.com> |
| Date | Mon, 30 Dec 2013 08:40:56 +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.4707.1388353266.18130.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1388353266 news.xs4all.nl 2888 [2001:888:2000:d::a6]:35977 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:62868 |
Show key headers only | View raw
On Mon, Dec 30, 2013 at 7:20 AM, Michael Matveev <mischamv@googlemail.com> wrote: > The shell gives out that kind of message: > > File "test.py", line 5, in <module> > root = Tkinter.Tk() > File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1712, in __init__ > self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use) > _tkinter.TclError: couldn't connect to display ":0" Worked for me on an installed Debian, inside Xfce with xfce4-terminal. 1) What version of Python are you running? 2) Are you running inside some kind of graphical environment? 3) Do you have any sort of permissions/environment change happening? I get an error like that if I try "sudo python" without any sort of guard. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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