467,074 Members | 880 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Entry widget -- how to prevent change

let's say I already have some content. How do I set the widget so user
cannot change it/?

Nov 22 '05 #1
  • viewed: 1477
Share:
2 Replies
On 2005-11-22, wanwan <er*******@yahoo.com> wrote:
let's say I already have some content. How do I set the widget so user
cannot change it/?


Most widgets have some sort of "read-only" or "edit enable"
attribute you can set. Look at the documentation for the
widget in question. Since you don't specify what toolkit you're
using, that about as specific an answer as you're going to get...

--
Grant Edwards grante Yow! I've read SEVEN
at MILLION books!!
visi.com
Nov 22 '05 #2
"wanwan" <er*******@yahoo.com> wrote:
let's say I already have some content. How do I set the widget so user
cannot change it/?


assuming that you're talking about the Tkinter Entry widget, setting
the state option to "readonly" should do the trick:

e = Entry(...)
e.config(state="readonly")

also see

http://effbot.org/tkinterbook/entry.....config-method

</F>

Nov 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Mickel Grönroos | last post: by
3 posts views Thread by Phil Schmidt | last post: by
reply views Thread by Marek S. | last post: by
2 posts views Thread by lee.walczak@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.