in reply to Read Only fields from Tk, neither Text or ROText seem to work.

One problem may be your use of == for string comparison. Try using eq. Both your strings numberify (that's a horrid non-word; forgive me) to 0.

emc

At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.
  • Comment on Re: Read Only fields from Tk, neither Text or ROText seem to work.

Replies are listed 'Best First'.
Re^2: Read Only fields from Tk, neither Text or ROText seem to work.
by SkipHuffman (Monk) on Oct 25, 2006 at 15:12 UTC

    Thanks, I would have caught that slop eventually. But that is not going to cause this problem.

    Skip

      I probably would have approached it differently to start with, in that I would have used label and entry widgets, vs Text/ROText, mostly because everything in your sample seems to be single-line fields. On the other hand, I've no clue as to how many label/entry pairs you would need; at some number (a half-dozen? a score?), your method may be less unwieldly than using label/entry pairs.

      emc

      At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.

      —Igor Sikorsky, reported in AOPA Pilot magazine February 2003.

        Ah! Much better! Label and Entry are my new bestest friends.

        Skip

        Well, I have around forty pairs on this screen (not my choice, duplicating extant function.) But I will see about the label/entry option.

        Skip
Re^2: Read Only fields from Tk, neither Text or ROText seem to work.
by SkipHuffman (Monk) on Oct 25, 2006 at 15:23 UTC

    On second thought, that MAY have something to do with it.

    Third Thought! That was it! Weird results for what was going on. Thanks!

    Skip