V
V
âš¡Valeryâš¡2015-12-25 17:20:25
Python
âš¡Valeryâš¡, 2015-12-25 17:20:25

How to add to Listbox?

Have a good day everyone. Please advise.
Mass = ["One","Two","Three","Four","Five"]
How do I populate the data from mass into a Listbox so that it's listed one by one and in a column?
Tried Listbox.insert("1.mass",End) - brought, but in 1 line

Answer the question

In order to leave comments, you need to log in

3 answer(s)
�
âš¡Valeryâš¡, 2015-12-25
@valo1114

This is for single ones, but what if you need to enter not 6 points but 666?

A
Andrey K, 2015-12-25
@mututunus

effbot.org/tkinterbook/listbox.htm

M
mad_god, 2015-12-25
@mad_god

Lb1 = Listbox(top)
Lb1.insert(1, "Python")
Lb1.insert(2, "Perl")
Lb1.insert(3, "C")
Lb1.insert(4, "PHP")
Lb1.insert( 5, "JSP")
Lb1.insert(6, "Ruby")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question