Skip Menu |
 

This queue is for tickets about the Tcl-pTk CPAN distribution.

Report information
The Basics
Id: 125420
Status: new
Priority: 0/
Queue: Tcl-pTk

People
Owner: Nobody in particular
Requestors: CAC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.92
Fixed in: (no value)



Subject: ROText not completely read-only
Download (untitled) / with headers
text/plain 301b
There are a few issues with ROText: - tabs and newlines can be freely inserted - text can be removed using the keyboard shortcut for "Cut" (e.g. Ctrl-X, Cmd-X) All of these can be performed from the main window widgetTclpTk. I don't think this is OS-specific since it happens on both Linux and macOS.
ROText in Tcl::Tk doesn't seem to have any of these issues. I would consider borrowing it, but it's using a very different approach that relies on snit (from tcllib extension, which Tcl::pTk doesn't already require), and I haven't verified it's a 100% Perl/Tk compatible approach.
On Thu Aug 02 01:20:21 2018, CAC wrote:
Show quoted text
> ROText in Tcl::Tk […] using a very different approach that relies on snit
> (from tcllib extension, which Tcl::pTk doesn't already require) […]

Tcl::Tk does include snit (i.e. loaded from a .pm) as a fallback, though.
On Thu Aug 02 01:20:21 2018, CAC wrote:
Show quoted text
> ROText in Tcl::Tk doesn't seem to have any of these issues. I would consider
> borrowing it, but it's using a very different approach that relies on snit
> (from tcllib extension, which Tcl::pTk doesn't already require), and I haven't
> verified it's a 100% Perl/Tk compatible approach.

Technically, Tcl::pTk should already have required tcllib, because it uses the tooltip package from tklib, and tklib requires tcllib (though I don't know if that requirement can be relaxed in certain cases). I have already updated the Makefile.PL and test-for-tk.tcl to check for tklib. So it should be safe to use snit.
On Mon May 28 23:09:29 2018, CAC wrote:
Show quoted text
> text can be removed using the keyboard shortcut for "Cut" (e.g. Ctrl-X, Cmd-X)

The text can also be changed with many other UNIX-like bindings like Ctrl-H and Ctrl-D. ROText in Tcl::pTk is probably a lot more broken than I thought…



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.