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


Groups > comp.lang.python > #71867 > unrolled thread

Re: tkinter errors out without clear message

Started byTerry Reedy <tjreedy@udel.edu>
First post2014-05-21 13:19 -0400
Last post2014-05-21 13:19 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#71867 — Re: tkinter errors out without clear message

FromTerry Reedy <tjreedy@udel.edu>
Date2014-05-21 13:19 -0400
SubjectRe: tkinter errors out without clear message
Message-ID<mailman.10202.1400692818.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web