Tk and Tkx are both built on Tcl but the interfaces are different. Tkx uses a mildly more perlish interface.
I've never translated Tk to Tkx but my first suggestion would be to go to the top of the script and change 'use Tk;' to 'use Tkx;' when you have Tkx installed and run the script to see what breaks. You can look up the section that is broken and convert to the new code here I think some of the old Tk style still works because not all Tcl elements are built as widgets and you still have to call them in the Tk way. I'm just not sure if having a widget in Tkx excludes the old Tk syntax.
| [reply] |
No no no no no no. Use Tcl::pTk, Tkx is significantly different from perl/Tk
| [reply] |
probably a dumb question here, but is there a way to migrate my Tk script to Tkx? Are they pretty much the same? No, but it could be as simple as use Tcl::pTk; except, if you can't manage to install Tk.pm, you're not going to manage to install Tcl::pTk. see Re: TclTk interface with Perl code, is it possible?, Re^2: GUI toolkit+designer for the perl newbie
Don't bother migrating, just go ahead and install Tk.pm by any means possible, even if it means installing a 32bit version of perl, or a different perl build, or whatever else you have to do
| [reply] |