How do I select the last item in my Tkinter Listbox?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
call
selection_clear()to remove any existing selection, followed byselection_set("end")[2] to select the last element. You might want to also callsee("end")to make sure it has been scrolled into view.