On 8/17/2016 7:13 PM, Lawrence D’Oliveiro wrote:
On Thursday, August 18, 2016 at 8:25:37 AM UTC+12, Terry Reedy wrote:

         for section_name, line_number in text.parser.toc:
             def goto(line=line_number):
                 text.yview(line)
             drop.add_command(label=section_name, command=goto)

You don’t think of that as having its own bit of subtle nastiness?

No, you will have to be explicit.


--
Terry Jan Reedy


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to