Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to increase spacing between rows in tinter listbox - python

Tags:

python

tkinter

I have a tkinter listbox initialised as follows:

self.serives_listbox = tk.Listbox(parent, font=("TkTextFont", 20), exportselection=False, width=30, height = 15)
self.serives_listbox.grid(column=0, row=1, padx=5, pady=10)

I then add items to the listbox like this:

for key, value in service_list[str(self.category_combox.get())].items():
    self.serives_listbox.insert(tk.END, str(key))

I need a way to increase the spacing between the rows of the lisbox

Thank you

like image 261
adhi chaddha Avatar asked Mar 14 '26 16:03

adhi chaddha


1 Answers

There is no way to change the spacing between items in a tkinter listbox, other than to insert blank items.

like image 151
Bryan Oakley Avatar answered Mar 17 '26 07:03

Bryan Oakley