ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcltk-perl
tcltk-perl
[tcltk-perl] Re: Perl/Tk Aqua progress?
by Jeff Hobbs other posts by this author
Dec 8 2004 6:07AM messages near this date
RE: [tcltk-perl] Re: Perl/Tk Aqua progress? | RE: [tcltk-perl] packaging Tcl::Tk and Tcl/Tk files within Perl installation
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.

tcltk-perl@[...].net 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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Tcltk-perl mailing list
Tcltk-perl@[...].net
https://lists.sourceforge.net/lists/listinfo/tcltk-perl

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved