Skip Menu |

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

Report information
The Basics
Id: 132075
Status: resolved
Priority: 0/
Queue: Tcl-pTk

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

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: 1.06_01



Subject: Ttk notebook identify method broken for Tk < 8.5.9
The Ttk notebook identify method was implemented in Tcl::pTk using the identify tab command which exists only in Tk 8.5.9 or later, and in Tile 0.8.4 for Tk 8.4. Under earlier versions, an error like the following occurs:

wrong # args: should be ".f02.ttknotebook03 identify x y" at lib/Tcl/pTk/Widget.pm line 336.

I noticed this when running tests on CentOS 6.10 with the provided Tk 8.5.7; t/ttkTixNoteBook.t and t/tkFacelift_notebook.t (which I don't think should strictly depend on Tix) fail after 7/13 tests.

Is this worth working around, or can I go ahead and require Tk 8.5.9+ (or Tile 0.8.4 for Tk 8.4) for Tcl::pTk? Is there a different way that the notebook identify method should be implemented for compatibility with Perl/Tk?

I've added an _identify_unavailable method to check whether the version of Tile present is too old for the identify method to work as currently implemented, and have used it to show a more helpful error message and to skip certain tests. Hopefully that is good enough for the time being; closing this ticket.