Hi, On Wed, 14 Feb 2018 03:19:29 +0530 Bhaskar Chaudhary <bha100...@gmail.com> wrote:
> Hi Bob > > Are you looking for the number of items in the listbox ? > If yes this should give you the number of items. > > print(len(listbox.get(0, END))) > > Given that each item occupies one line in the list box, i think it the > same as giving the height in lines. correct, this should work. However, life can be made a tiny bit easier with print(listbox.size()) Best regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. War isn't a good life, but it's life. -- Kirk, "A Private Little War", stardate 4211.8 _______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss