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

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to