• Re: Using text widget for showing file content

    From Alexandru@21:1/5 to Harald Oehlmann on Tue Oct 24 13:19:05 2023
    Harald Oehlmann schrieb am Dienstag, 24. Oktober 2023 um 22:05:50 UTC+2:
    Am 24.10.2023 um 21:05 schrieb Alexandru:
    Is there an alternative to using the standard text widget for showing file content as in a simple text editor?

    I'm asking this due the enormous performance issue when lond lines of text exist in the file.

    It seems like the command

    $text insert 1.0 $content

    takes forever.

    I guess this issue is known already, are there any workarounds (other widgets)?

    Thanks
    Alexandru
    Yes! Use, what is known, as the new text widget.
    The current text widget can freeze for minutes in the elided text
    algorithm (making word-break).
    The tags in the tk fossil are "revised_text" and tip-466, which proposes
    this text widget.

    We all would love this in Tk. But there are incompatibilities...

    Take care,
    Harald
    Cool. Found this:
    https://scidb.sourceforge.net/tk/download.html
    Downloaded the zip archive and tried to compile but failed at this point.
    I don't even see a make file.
    Do I miss something here?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Harald Oehlmann@21:1/5 to All on Tue Oct 24 22:05:45 2023
    Am 24.10.2023 um 21:05 schrieb Alexandru:
    Is there an alternative to using the standard text widget for showing file content as in a simple text editor?

    I'm asking this due the enormous performance issue when lond lines of text exist in the file.

    It seems like the command

    $text insert 1.0 $content

    takes forever.

    I guess this issue is known already, are there any workarounds (other widgets)?

    Thanks
    Alexandru

    Yes! Use, what is known, as the new text widget.
    The current text widget can freeze for minutes in the elided text
    algorithm (making word-break).
    The tags in the tk fossil are "revised_text" and tip-466, which proposes
    this text widget.

    We all would love this in Tk. But there are incompatibilities...

    Take care,
    Harald

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alexandru@21:1/5 to All on Tue Oct 24 12:05:25 2023
    Is there an alternative to using the standard text widget for showing file content as in a simple text editor?

    I'm asking this due the enormous performance issue when lond lines of text exist in the file.

    It seems like the command

    $text insert 1.0 $content

    takes forever.

    I guess this issue is known already, are there any workarounds (other widgets)?

    Thanks
    Alexandru

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)