Welcome folks today in this blog post we will be displaying list of data
inside tkinter using listbox
widget in python. All the full source code of application is given below.
Get Started
In order to get started you need to make an app.py
file and copy paste the following code
app.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#listbx.py simple tkinter list box #andyp 20.03.13 import tkinter #import tkinter.messagebox app=tkinter.Tk() lbox=tkinter.Listbox(app) lbox.insert(1, "Test") lbox.insert(2, 'Run') lbox.insert(3, 'Save') lbox.pack() app.mainloop() |
Now just execute the above python script by typing the below command as shown below
python app.py