BWidgets listbox supports insertion of images alongside text, and is
nicer than the alternatives I've looked at (various tree widgets, for
I've found what I think is a bug. When the BWidgets listbox is placed
inside a panedwindow, it does not properly display the
selectforeground/selectbackground colors--in fact, it provides no visual
feedback at all that a listbox item is selected.
The following code illustrates the problem. The listbox does respond to
button events; when an item is selected, text is printed to the text
widget. But there is no visual selection feedback in the listbox itself.
Can someone review this, test it, and let me know if I'm doing something
wrong, or if this is in fact a bug? Thanks.
from bwidget import *
root = Tkinter.Tk()
right = ""
m = Tkinter.PanedWindow(root, orient="horizontal")
left = ListBox(m, selectbackground="black", selectforeground="white")
for text in "abcde":
left.bind_text("<Button-1>", (lambda event: printstuff()))
right = Tkinter.Text(m)
Code by Kevin