Pmw.scrolledText and the <Key> event

Martin Franklin martin.franklin at westgeo.com
Wed Jan 23 03:33:39 EST 2002


Bob Greschke wrote:

> I'm trying to make a Pmw.scrolledText widget non-editable, 




Bob,

If you want to use <Key> binding try this:

scrol_text.component('text').bind('<Key>', some_function)


But you should try this instead:

scrol_text=Pmw.ScrolledTextbox(self, text_state='disabled')

of if you want to change it later....

scrol_text.config(text_state='disabled')


To find a list of these config options try this:

print scrol_text.config()


HTH 
Martin







More information about the Python-list mailing list