Home > front end >  tkinter listbox.get(all the lists)?
tkinter listbox.get(all the lists)?

Time:02-03

I was trying to get all elements listed in the list box. But it is dropping error messages. What I tried was:

def getValues():
    values = lb.get()
    return values

CodePudding user response:

It worked, thanks @Delrius Euphoria. That was assigning the first and last elements. The first was 0 and the last was the end of the list(END),

def getValues():
    values = lb.get(0, END)
    return values
  •  Tags:  
  • Related