Skip Menu |

This queue is for tickets about the Tk-Tree CPAN distribution.

Report information
The Basics
Id: 30781
Status: resolved
Priority: 0/
Queue: Tk-Tree

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

Bug Information
Severity: Important
Broken in: 4.73
Fixed in: 4.74



Subject: Tk::DirTree does not work on MSWin32
use Tk; use Tk::DirTree; my $mw = new MainWindow; my $dt = $mw->DirTree->pack; $dt->configure(-directory => 'C:/Perl/bin'); MainLoop; __END__ The result is as follows: Tk::Error: parent element "\C:" does not exist at c:/perl/lib/Tk.pm line 252. Tk callback for .dirtree Tk::__ANON__ at c:/perl/lib/Tk.pm line 252 Tk::DirTree::add_to_tree at c:/perl/site/lib/Tk/DirTree.pm line 148 Tk::DirTree::set_dir at c:/perl/site/lib/Tk/DirTree.pm line 99 Tk::After::once at c:/perl/lib/Tk/After.pm line 89 [once,[{},after#4,idle,once,[{},set_dir,C:/Perl/bin]]] ("after" script) I think the problem is Tk/DirTree.pm line 98. Why is there an explicit '/' as the first argument to catfile? If I simply remove that '/' it works on MSWin32... -- - - Martin 'Kingpin' Thurn
Subject: Re: [rt.cpan.org #30781] Tk::DirTree does not work on MSWin32
Date: 16 Nov 2007 22:31:09 +0100
To: bug-Tk-Tree [...] rt.cpan.org
From: Slaven Rezic <slaven [...] rezic.de>
"Martin Thurn via RT" <bug-Tk-Tree@rt.cpan.org> writes: Show quoted text
> Fri Nov 16 12:31:55 2007: Request 30781 was acted upon. > Transaction: Ticket created by MTHURN > Queue: Tk-Tree > Subject: Tk::DirTree does not work on MSWin32 > Broken in: 4.73 > Severity: Important > Owner: Nobody > Requestors: MTHURN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=30781 > > > > use Tk; > use Tk::DirTree; > my $mw = new MainWindow; > my $dt = $mw->DirTree->pack; > $dt->configure(-directory => 'C:/Perl/bin'); > MainLoop; > __END__ > The result is as follows: > > Tk::Error: parent element "\C:" does not exist at c:/perl/lib/Tk.pm line > 252. > Tk callback for .dirtree > Tk::__ANON__ at c:/perl/lib/Tk.pm line 252 > Tk::DirTree::add_to_tree at c:/perl/site/lib/Tk/DirTree.pm line 148 > Tk::DirTree::set_dir at c:/perl/site/lib/Tk/DirTree.pm line 99 > Tk::After::once at c:/perl/lib/Tk/After.pm line 89 > [once,[{},after#4,idle,once,[{},set_dir,C:/Perl/bin]]] > ("after" script) > > I think the problem is Tk/DirTree.pm line 98. Why is there an explicit > '/' as the first argument to catfile? If I simply remove that '/' it > works on MSWin32... >
I made this change and just uploaded Tk-Tree-4.74.tar.gz. Please check if it works for you (I have no Windows here). Regards, Slaven -- Slaven Rezic - slaven <at> rezic <dot> de tkruler - Perl/Tk program for measuring screen distances http://ptktools.sourceforge.net/#tkruler
Subject: RE: [rt.cpan.org #30781] Tk::DirTree does not work on MSWin32
Date: Sat, 17 Nov 2007 10:49:25 -0500
To: <bug-Tk-Tree [...] rt.cpan.org>
From: "Martin Thurn" <mthurn [...] verizon.net>
Show quoted text
> > I made this change and just uploaded Tk-Tree-4.74.tar.gz. Please check > if it works for you (I have no Windows here).
Yes, seems to work great! Thank you - - Martin