Harri Pasanen: Re: [Idle-dev] Known bug? Saving fails in IDLE if accents used in char acters

Neal Norwitz neal@metaslash.com
Sun, 23 Mar 2003 18:18:42 -0500


On Sun, Mar 23, 2003 at 11:33:51PM +0100, Martin von Loewis wrote:
> 
> > The message box is modal, and I cannot cut and paste the line from it.
> 
> Patches to correct this are welcome. I'm unsure what Tk widget to use
> that allows copyable-but-uneditable text.

The entry widget works fine, it needs to be disabled to prevent it
from being modified:

        >>> from Tkinter import *
        >>> tk = Tk()
        >>> entry = Entry()
        >>> entry.pack()
        >>> entry.insert(0, 'test, test, test')
        >>> entry.configure(state=DISABLED)

Neal