Pmw.ScrolledListbox

Richard Townsend richard at NOstarfighterSPAM.freeuk.com
Thu Nov 15 17:26:18 EST 2001


> Making some tests now, it seems that the problem is connected to the
> functions
> withdraw(), activate(). I have no idea why.
>

I suspect the Pmw activate() method is setting the keyboard focus using the
focus_set() method.

If you do this on a Tkinter.Listbox it also shows the wretched underline
behaviour...

e.g.

from Tkinter import *
root = Tk()
lb = Listbox(root)
for item in ["one", "two", "three", "four"]:
    lb.insert(END, item)
lb.pack()
lb.focus_set()
root.mainloop()


Even calling tk_strictMotif(TRUE) doesn't stop this non-motif behaviour :-(







More information about the Python-list mailing list