in reply to Re^17: problem with par as other user
in thread problem with par as other user

Documentation on Tcl::Tk should be improved, may be I'll improve it someday. But essentially it should refer reader to Tcl/Tk documentation, where widget behaviours and parameters are described. (I did wiki for Tcl::Tk generally for adding documentation by myself at http://www.vkonovalov.ru/cgi-bin/perl-tcltk-wiki.cgi, there are some good examples on code and screenshots)

But perl/Tk syntax, while recognized to be smart and good, it is too noisy (compared to Tcl/Tk), there are just too many '(' and ',' and '=>'.

My approach is in the middle. I create widgets and layout with Tcl/Tk and then use perl/Tk syntax to manage existing widgets, similar to http://www.vkonovalov.ru/vtcl-usage/Using_vtcl_for_creating_Tcl-Tk_GUI_for_Perl.html

May be best choice for you could be Tkx? Look at http://search.cpan.org/~gaas/Tkx-1.04/Tkx/Tutorial.pod. Documentation is good, and author deserves deepest respect, so you'll be on the good way.

As for alternate packager - I'll add it to CPAN, sooner or later :)

Replies are listed 'Best First'.
Re^19: problem with par as other user
by Ace128 (Hermit) on Jul 02, 2006 at 15:46 UTC
    Thanks for the links! Quite usefull. And you seem to have been doing this for a while. :)

    Question: Since I've been using Perl/Tk alot, what about all those lovely Tk::... modules then? How can one use them with Tcl/Tk instead? Is it just to use them as is or what? Or maybe I'm to tired to realize something crucial... :)

    Among others I find these quite usefull:
    Tk::JComboBox;
    Tk::MListbox;
    Tk::DynaTabFrame;

    Doesn't seem that they are included with Tcl/Tk installation.. Maybe they exist on a CPAN like site somewhere...?

    / Ace
      Tk::JComboBox is poor substitute, Tcl/Tk allows similar widgets *yet* it allows native drop-down box!

      MListbox - look at http://mini.net/tcl/6784

      Tk::DynaTabFrame - BLT's tabs are MUCH more attractive, yet more powerful, see http://vkonovalov.ru/cgi-bin/perl-tcltk-wiki.cgi/40

      As for your own pure-perl widgets -- sorry, no coffee.
      perl/Tk's megawidgets are done with Tix, and I even implemented compatibility stuff in Tcl::Tk which worked, but I never released this because I lost interest in this.