Answers for "listbox in tkinter"

-2

list in tkinter messagebox

from tkinter import *
from tkinter import messagebox

def listMessageBox(arr):
  window=Tk()
  listbox=Listbox(window)
  listbox.pack(fill=BOTH, expand=1) #adds listbox to window
  [listbox.insert(END, row) for row in arr] #one line for loop
  window.mainloop()
  
arr=['a','b','c','1','2','3']

listMessageBox(arr)
Posted by: Guest on March-16-2020

Code answers related to "listbox in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language