H
H
hardwellZero2015-02-24 19:05:18
Python
hardwellZero, 2015-02-24 19:05:18

How to check listbox tkinter?

Hello.
Started disassembling Tkinter, decided to write a small program, ran into a problem. I don't know how to check a SPECIFIC listbox.
Found a universal method:
root.bind('<<ListboxSelect>>', check)
Well, the output of the index:

def check(event):
    print event.widget.curselection()

I explain. There will be several listboxes, you need to check each one separately.
Thank you in advance for your help ;)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question