I have been trying to find information to help me margin (pad) the Listbox when it is populated from a database query. Currently the inserted data is right against the Listbox frame and it can make it hard to read.
Using the grid method I know it can be done by "name.grid(ipadx and ipady)", however I have been writing this project using the pack method.
Can a Listbox have a margin of 1 or 2 character spaces when the data is inserted so it is not against the frame?
Using the grid method I know it can be done by "name.grid(ipadx and ipady)", however I have been writing this project using the pack method.
Can a Listbox have a margin of 1 or 2 character spaces when the data is inserted so it is not against the frame?
output = tkinter.Listbox(window_2, height = 20, font='Times 10', width=42, bd=1, bg = '#FFD599', fg = '#9A0615', selectmode=SINGLE) output.pack() output.place(x=210, y=195) yscroll1 = tkinter.Scrollbar(command=output.yview,orient=tkinter.VERTICAL) yscroll1.place(x=463, y=196) output.configure(yscrollcommand=yscroll1.set) output.bind('<ButtonRelease-1>', getRecipe)
"Often stumped... But never defeated."