[Tutor] blocking user access
Kent Johnson
kent37 at tds.net
Wed Mar 23 12:26:30 CET 2005
Diana Hawksworth wrote:
> Hi! I need help on blocking user access to a message box - for example,
> the program could provide an answer to an input. At the moment, the
> user has access to - and can type into - that "answer" space. How do I
> prevent that from happening please?
It sounds like you want to disable writing into a text field in your gui? Are you using Tkinter or
another GUI toolkit?
In Tkinter you could use a Label widget, which is never editable, or you could use a Text widget
with its 'state' option set to 'DISABLED' like this:
t=Text(state=DISABLED)
Kent
More information about the Tutor
mailing list