CPAN modules Tcl-0.72.tar.gz and TclTk-0.72.tar.gz allow connecting to existing Tcl/Tk installation and these modules are able to provide syntax very similar to perl/Tk.
I wrote this announcement here because of two main reasons:
  1. to let people try those modules and may be they will provide useful feedback and further ideas.
  2. (most improtant item) may be volunteers could help me improving documentation of modules
    I need help in preparing better and cleaner phrases.

These newly released modules allow Perl users to use newest available Tcl/Tk features plus pure-Tcl widgets but still remaining in usual perlTk syntax.
Usually the only distinction is using use Tcl::Tk qw(:perlTk); instead of use Tk;.
(sometimes several modifications of perlTk code still necessary, but I hope this will be improved in the future)

Here is an example:

use Tcl::Tk qw(:perlTk); $mw = MainWindow->new; $mw->Label(-text => "Hello world")->pack; $btn = $mw->Button(-text => "test", -command => sub { $btn->configure(-text=>"[". $btn->cget('-text')."]"); })->pack; $edt = $mw->Text()->pack; $edt->insert('end',"\x{2456}\x{2457}"); MainLoop;

While there are still some places to improve and even DEBUG information appearing, there's not much work remains to do, and I am planning finishing it within couple of weeks.

Actually size of Tcl::Tk is rather small, and most of actual processing is performed on Tcl side.
Examples occupy a lot of space inside distribution, but module itself is small.

Courage, the Cowardly Dog
PS. I am also thinking about allowing to use pure-perl widgets in Tcl::Tk, but currently I can't guarantee anything on this.


In reply to Tcl, Tcl::Tk now much better, but need documentation improvements by Courage

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.