in reply to Re: difficulty inserting at line and character col in tkx text widget
in thread difficulty inserting at line and character col in tkx text widget

Ok...I got it to "work" but only after I'd filled sufficient lines SEQUENTIALLY using $text->insert("end", $some_text."\n"); I was then able to insert stuff at the specified line and column.
  • Comment on Re^2: difficulty inserting at line and character col in tkx text widget

Replies are listed 'Best First'.
Re^3: difficulty inserting at line and character col in tkx text widget
by soonix (Chancellor) on Jan 25, 2016 at 08:16 UTC

    Now that you found out anyway, I can see it in the documentation, too :-)

    It's a bit cryptic, however.
    If index refers to the end of the text (the character after the last newline) then the new text is inserted just before the last newline instead.
    is probably meant to say
    Trying to insert anywhere after the end of existing text results in simply appending.