Menu

Disabled EntryField

Help
Anonymous
2010-05-24
2013-02-21
  • Anonymous

    Anonymous - 2010-05-24

    I have an app that will have text entry areas that the user can enter into and I'd like to use "disabled" text entry areas that the application can put values into but the user can't change. In TK I could set state=DISABLED to gray the box, but it doesn't look like EntryField inherits the state variable.

    A simple example would look like:
        Desired     Actual
    where "desired" is a field the user can enter into and "Actual" exists to provide feedback only.

     
  • Greg McFarlane

    Greg McFarlane - 2010-05-24

    The entry widget inside a Pmw.EntryField megawidget is a component named "entry".  So you can configure it the same way any component can be. For example:

        entryfield.configure(entry_state=DISABLED)

     

Log in to post a comment.