Apr-03-2019, 12:08 AM
Hi wuf... I've tried this example and it will not work either. The Listbox does not display at all.
Here is the code as entered into my script:
main_frame to window_2 as required
removal of "listbox.insert('end', *list_item_values)" as required
It will not display without pack along with place.
if either one is not present the widget does not display.
Here is the code as entered into my script:
INTERIOR_BORDER = 10 output = tkinter.Listbox(window_2, width=42, height=20, bd=0, highlightthickness=0, bg = '#FFD599', fg = '#9A0615', selectmode='single') output.pack(side='left', fill='both',expand=True, padx=INTERIOR_BORDER, pady=INTERIOR_BORDER) #output.place(x=210, y=195) yscroll1 = tkinter.Scrollbar(window_2, command=output.yview, orient='vertical') yscroll1.pack(side='left', fill='y') #yscroll1.place(x=463, y=196) output.configure(yscrollcommand=yscroll1.set) output.bind('<ButtonRelease-1>', getRecipe)I changed the following:
main_frame to window_2 as required
removal of "listbox.insert('end', *list_item_values)" as required
It will not display without pack along with place.
if either one is not present the widget does not display.
"Often stumped... But never defeated."