Harri Pasanen: Re: [Idle-dev] Known bug? Saving fails in IDLE if accents used in char acters
Martin von Loewis
loewis@informatik.hu-berlin.de
Mon, 24 Mar 2003 14:55:48 +0100 (CET)
> 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)
I see. Unfortunately, the code currently uses tkMessageBox,
which cannot be customized to use an Entry instead of
a label (or message widget), nor can Dialog be customized
in this way. I'm now looking into writing a full dialog
inheriting from SimpleDialog, completely rewriting its
__init__ :-(
Regards,
Martin