At program startup, I add some items to my listbox like this:
for widget in WidgetNames:
listbox.insert(0, widget)
WidgetNames is obviously a list of some items, e.g. "Button" and "Canvas". The thing is, the listbox doesn't show the items that are added with above code. However,
for widget in WidgetNames:
listbox.insert(0, widget)
print(listbox.get(0))
prints "Button" and "Canvas", and
for widget in WidgetNames:
listbox.insert(0, widget)
print(listbox.size())
prints 2, which obviously is the correct number of items it contains. All the listbox shows after items are added is an empty line. I've tried listbox.see(0) and listbox.index(0), but that didn't help. Any ideas why the items aren't added properly?