469,922 Members | 2,201 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,922 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
2 1536
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
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.