How to debug an unfired tkinter event?

Terry Reedy tjreedy at udel.edu
Thu Oct 19 19:37:12 EDT 2017


On 10/19/2017 5:07 AM, jfong at ms4.hinet.net wrote:

> I got some info below each time when I squeeze the table:
> .
> .50077776
> .50077776.50712528
> .50077776.50712496
> .50077776.50712464
> .50077776.50712144
> .50077776.50712528.50712560.50782256
> .50077776.50712528.50712560.50782256.50783024
> .50077776.50712528.50712560.50782256
> .50077776.50712528.50712560.50782256.50783024
> 
> How to change these number(is it a widget ID?) to a meaning name?

The number strings as names are the defaults that came from tkinter, not 
tcl/tk.  In 3.6, the default names were changed to be versions of the 
class name.

 >>> import tkinter as tk
 >>> r = tk.Tk()
 >>> b = tk.Button(r)
 >>> b
<tkinter.Button object .!button>
 >>> b2 = tk.Button(r)
 >>> b2
<tkinter.Button object .!button2>

-- 
Terry Jan Reedy




More information about the Python-list mailing list