Pmw.scrolledText and the <Key> event
Tomasz Lisowski
jtlispl at poczta.NOSPAM.onet.pl
Wed Jan 23 03:44:55 EST 2002
U¿ytkownik "Bob Greschke" <bob at passcal.nmt.edu> napisa³ w wiadomo¶ci
news:a2kpmd$16nq$1 at newshost.nmt.edu...
> I'm trying to make a Pmw.scrolledText widget non-editable, or
> uneditable, or whatever, by the user. I made my regular Text widgets
> uneditable by binding them to the <Key> event and calling a handler
> that just returned 'break'. But it's not working for the scrolledText
> widgets. They don't seem to be generating the <Key> event. What
> should I be looking for instead, or is there a better way to make then
> uneditable?
>
I guess, you should bind the <Key> event not to the Pmw.scrolledText widget,
but to its 'text' component.
Tomasz Lisowski
More information about the Python-list
mailing list