Tkinter: cut'n'paste from DISABLED window?

Patrick L. Nolan pln at cosmic.stanford.edu
Tue Apr 6 21:38:56 EDT 2004


Our Tkinter application has a big ScrolledText widget which is
a log of everything that happens.  In order to prevent people
from making changes, we have it in DISABLED mode except when
the program wants to write a new entry.  This works OK, except
that sometimes we want to copy out of piece of the contents and
paste it in another window.  When it's DISABLED, it appears
that we can't even select a portion of the text.

Is this an either-or situation?  Or is there some clever way to
get around it?

If it matters, we want this to work on both Linux and Windows.

-- 
*   Patrick L. Nolan                                          *
*   W. W. Hansen Experimental Physics Laboratory (HEPL)       * 
*   Stanford University                                       *



More information about the Python-list mailing list