[tcltk-perl] Re: Perl/Tk Aqua progress?
Brought to you by:
hobbs
From: Jeff H. <je...@Ac...> - 2004-12-08 06:07:16
|
Hi Wade, H. Wade Minter wrote: > Based on this and your post today on comp.lang.perl.tk extolling the > virtues of the Tcl::Tk interface vs. the "Perl/Tk" interface, I've > decided to see what it would be like to convert my fairly complicated > Perl/Tk application (http://www.lunenburg.org/mrvoice/) to the Tcl::Tk > module. > > Surprisingly enough, with the :perlTk interface to Tcl::Tk, I didn't > have to comment out much functionality from my app to get it working on > OS X with Tcl::Tk 0.84. However, I've got a couple of questions. If Cool! > you're the guy to answer them, I'd appreciate them. If not, feel free > to direct me to the right person or mailing list. tcl...@li... is the best list. I've cc'ed, but you should join if you continue developing with it. As to the questions, see the longer post I made to another person in that thread where I reference your questions (anonymously). The key item is that Tcl::Tk is still pre-1.0 for a reason, and that the Perl/Tk compatability is weakest in the submodule area. > 1) How does Tcl::Tk interact with Perl/Tk submodules. For example, I > use Tk::ProgressBar::Mac to generate a progress bar. However, when I > try to use it with my mimimal changes, I get an error when I attempt to > call the widget. Do I need to remove or rewrite any non-core widgets > that my script uses in order to use Tcl::Tk? > > 2) Does Tcl::Tk support drag and drop? I had to comment out the > Tk::StartDrag and Tk::DragDrop calls in order for the script to run > under Tcl::Tk. > > 3) Are Pixmap window icons supported? > > I don't mind porting some of my code over to the Tcl::Tk way of doing > things, but I'm not fluent in Tcl or the way this module does things, > whereas I've been working with Perl/Tk for 3-4 years now. On first > glance, aside from a few problems, my app runs well by changing "use > Tk;" to "use Tcl::Tk qw(:perlTk);", which is both surprising and > encouraging. Good work to the team for making at least the initial > stuff so easy! Learning a little Tcl will help, but it really isn't necessary to make Tcl::Tk work for you - that's the point. You should really be able to work at the Perl level. However, for compatability, leveraging existing Tcl modules may well be to your advantage. -- Jeff Hobbs, The Tk Guy http://www.ActiveState.com/, a division of Sophos |