[Tutor] Tkinter Text Boxes

Michael Lange klappnase at freenet.de
Wed Oct 20 21:20:54 CEST 2004


On Wed, 20 Oct 2004 13:14:22 -0500
Hugo González Monteverde <hugonz-lists at h-lab.net> wrote:

> There is an "enable" configuration option for the text box. When you 
> disble it, you won't be able to print anything to it, and so won't the 
> user. You then have to do:
> 
> enable
> put text in the box
> diable
> 
> I believe this would be it:
> 
> mytextbox.configure(state="enabled")
> #DO your widget updating here...
> mytextbox.configure(state="disabled")
> 
> 

That's almost correct, except the "enabled" state must be "normal", so this should be changed to:

mytextbox.configure(state="normal")
#DO your widget updating here...
mytextbox.configure(state="disabled")

Best regards

Michael



More information about the Tutor mailing list