Re: Text widget and undo



"Sam" <baudinm@xxxxxxxxx> wrote:

Hi,
I don't know if this is a bug, but I am experiencing a problem with the
Tk's text widget. I create an empty text widget, press the "Suppr" key
on my keyboard, undo the delete and read the modified flag. What is
strange is that the text remains modifed !

It sounds like you expect [.t edit modified] to tell you whether or not
the text matches what it was when you started. I understand it
differently, as a flag that "something" has been done to the text,
specifically an insert or delete. If a string of "somethings" happens
to return the text to its original value, it still has been modified.
.



Relevant Pages

  • Re: Text widget and undo
    ... I create an empty text widget, ... on my keyboard, undo the delete and read the modified flag. ...
    (comp.lang.tcl)
  • [kde-linux] [kde4-trunk] device notifier not working
    ... i've been experiencing a problem with the device notifier plasma ... widget for about 10 days. ... command. ...
    (KDE)
  • Bug in docs or in Tk text widget?
    ... I just stumbled over a problem with Tks text widget. ... empty and the man-page says it should return the empty string: ... Return a range of characters from the text. ... index2 will not be returned). ...
    (comp.lang.tcl)
  • Re: Where is my desktop?
    ... Where have my lost icons gone? ... You can add a "folder view" widget to the workplace. ... I see that my ~/Desktop seems to be empty, ...
    (Fedora)
  • Re: [tcl/tk] Question - "entry" field size
    ... If the value is less than or equal to zero, the widget picks a size just ... Then a bunch of entries will keep the same width, ... This ensures that it can easily be clicked, even if it is empty. ...
    (comp.lang.tcl)