Re: Any thoughts on the Tcl::Tk bridge?

Vadim Konovalov <[email protected]>
Newsgroups gmane.comp.lang.perl.tk
Message-ID <1105040091.3123.51.camel@localhost>
> On one hand, it seems like a good thing to reduce the  turnaround time 
> needed to take advantage of not only the latest Tk version, but also 
> other Tcl/Tk packages, such as BWidgets, but on the other hand, I'm not

to look at another points, please see URL http://mini.net/tcl/13208
which covers Tcl::Tk module specific compared to perlTk

 
> wild about maintaining a Tcl/Tk distribution in addition to the Perl 
> one, and ensuring it any other related packages are up to date and in sync.

it appears to be easy: you can have entire Tcl/Tk installation (with
Tix, Bwidgets, and everything else) within any of your directory (within
directory where Tcl::Tk module is, for example)
All you need is to just point one of configuration variables
I'll provide details if needed.

I have a technique to have all Tcl/Tk inside single ZIP and so to have
excellent moveable distribution, I can share this technique as well
(within Tcl::Tk mailing list, to be on-topic)


> 
> A nice thing about the Perl/Tk widgets, is that most of the bindings and 
> some additional behavior was done directly in Perl. These modules served 
> as useful examples of how other modules might be coded. It's how I 
> started learning. I don't relish the thought of these modules being 
> written in Tcl. I initially started out learning Tcl years ago, not 

good point -- to learn by example.

Perl/Tk widgets are not currently supported by Tcl::Tk, but:
 - it looks like there are strong plans to it: see
http://sourceforge.net/mailarchive/message.php?msg_id=10360308
 - on the real life, I feel more comfortable with bigger library of
Tcl/Tk megawidgets, it fulfills most of my requirements. To make an
analogy, Perl does not allow inline assembler, however C does. Does it
mean C is better? :) For me, perl allows more and I rarely go to C
level...  

> because I liked Tcl, but because I found it useful in quickly building 
> user interfaces.  I preferred Perl, and didn't look back when I found 
> that Tk had been ported to Perl. This isn't a knock on Tcl, it's just a 
> preference.
> 
> Has anyone else done much with it, yet?

For me, I now have both perlTk and Tcl::Tk installed, but more and more
I use Tcl::Tk, just because I have what I had before and additionaly
some other powerful techniques.

See for example
http://www.vkonovalov.ru/vtcl-usage/Using_vtcl_for_creating_Tcl-Tk_GUI_for_Perl.html

On the other side, when using Tcl::Tk, one must be prepared to some
surprises, which are hopefully not hard to solve.

To finalize a bit, take a look how Ruby and Python do Tk GUI. They do it
via Tcl, just like Tcl::Tk does.
My feelings is by this way you can get more in less efforts.


Vadim.



-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.