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


Groups > comp.lang.python > #71867

Re: tkinter errors out without clear message

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'root': 0.05; 'debug': 0.07; 'tkinter': 0.07; 'tries': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'window.': 0.09; 'python': 0.11; 'bug': 0.12; 'jan': 0.12; '2.7': 0.14; 'windows': 0.15; 'fixes.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'tkversion': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'community,': 0.19; 'slightly': 0.19; '>>>': 0.22; 'code,': 0.22; 'import': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'error': 0.23; 'text.': 0.24; 'skip:" 30': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'label': 0.30; 'text': 0.33; 'linux': 0.33; 'actual': 0.34; 'skip:_ 10': 0.34; 'message.': 0.35; 'problem.': 0.35; 'test': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'installing': 0.36; 'window': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; '(from': 0.39; 'received:71': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'received:org': 0.40; 'simple': 0.61; 'more': 0.64; 'dear': 0.65; 'within': 0.65; 'here': 0.66; 'believe': 0.68; 'default': 0.69; 'installer': 0.84; 'received:fios.verizon.net': 0.84; 'song': 0.84; 'releases.': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: tkinter errors out without clear message
Date Wed, 21 May 2014 13:19:42 -0400
References <CAFJbdso+NWOkZXPUxAPRGhymtrUm9JoBi=TGEiNpxj_4ke71Gg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-71-175-90-87.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
In-Reply-To <CAFJbdso+NWOkZXPUxAPRGhymtrUm9JoBi=TGEiNpxj_4ke71Gg@mail.gmail.com>
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.10202.1400692818.18130.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1400692818 news.xs4all.nl 2974 [2001:888:2000:d::a6]:58661
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:71867

Show key headers only | View raw


On 5/21/2014 12:11 PM, Kai Song wrote:
> Dear Python community,
>
> I have been trying to make Tkinter work on my Scientific Linux 6 (SL6)
> system. The python version is the SL6 default Python/2.6.6, and the
> tkinter is also from SL6 repository, "tkinter-2.6.6-51.el6.x86_64".
>
> I was able to import _tkinter and Tkinter, and the _test() will bring up
> an empty window, but it will then fail without any actual error message.
> I think it's when it tries to create buttons. I tried to use python gdb
> to debug through the code, but It's hard to pin point the problem.

> _tkinter.TclError

Nasty. I have seen TclErrors, but with a message.

Here is a simple test I just ran (from within Idle) on Win7, 2.7.6.

 >>> import Tkinter as tk
 >>> root = tk.Tk()
 >>> tk.Label(root, text = 'label text').pack()
 >>> tk.mainloop()

and I see a window with label with text.

tk._test() works too, with slightly more involved window.

You said you tried 2.7.5. I believe 2.7.6 has some tkinter bug fixes.
There is also the issue that TkVersion == 8.5 is underspecied -- there 
are multiple bugfix releases. The 2.7 Windows installer has been 
installing 8.5.2, which has some bugs, but 2.7.7 will install 8.5.13, 
which is much better.

-- 
Terry Jan Reedy

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


Thread

Re: tkinter errors out without clear message Terry Reedy <tjreedy@udel.edu> - 2014-05-21 13:19 -0400

csiph-web