I don't understand your question: the posted example works (except apparently for some Tk versions under Windows). If you want to know how to port widgets designed for Tcl/Tk, then you have to look at the source code of Tk::TableMatrix, but I have to warn you, it's not that simple... | [reply] |
Updated:I was able to track this problem down, and it was caused by a bad binary module distribution on Theory. I downloaded the CPAN source and built it out on Win2K/AS 5.8.3.809/Tk 804.027 using MS Visual Studio and it built and installed w/o a hitch and all the demos worked 4.0.
I contacted Randy Kobes and he said he would upload a new version.
The lesson for me here is that you can't assume that just because the module is on a PPM site that it actually works I guess... ack!
Also, Tcl is NOT required as Eserte stated. Thank you Eserte.
JamesNC
| [reply] |
Well you wrote:
Tk::TableMatrix does not need Tcl (as other Perl/Tk widgets, too). All "Tcl" bits in the documentation are probably left-overs of the original Tcl doc.
So, you are saying, I don't need Tcl installed for that Module to work because the Pod is wrong. So, I say back to you - Please prove this to me because I am running the same set up as the original poster, only I didn't have Tcl installed. I get an exception in the DynaLoader when I try to use that module (installed for my build via PPM). He didn't say he had Tcl installed until after I posted to him. I even said I didn't have Tcl installed and I am not one to troubleshoot that if it is the problem ( it just wasn't on his environment list...) You are saying I don't need Tcl. And I am telling you, it doesn't work as it is posted and the only thing I could think of was that Tcl was missing. Period. I don't waste folks time jabbering about stuff I haven't tried and verified. I have been using Tk for about 2 years on Win32 now. Please post the code that you say works without Tcl on Win32 for this module, because it doesn't work for me. I haven't seen ANY Tcl Widgets work without Tcl installed.
| [reply] |
Sorry, I can't help, because I don't have Windows available.
And the following won't show any traces of tcl include files or libraries on my Linux box:
cd Tk-TableMatrix-1.01
strace -f -eopen perl Makefile.PL | & grep -i tcl
strace -f -eopen make | & grep -i tcl
strace -f -eopen make test | & grep -i tcl
I can't think of any reason why this should be different on Windows.
Update: -f added
| [reply] [d/l] |