Need help with Perl/Tk

Jason Pearce jason.pearce@ieee.org
Mon Dec 17 00:48:00 GMT 2007


This is rather late because I only follow the digest, but I've looked 
into Perl/TK a bit with Cygwin.
Initially I found it all to be fairly disappointing, not least because 
when I finally got things "working" Perk/TK gave limited widgets and was 
prone to crashes.

My current solution is to use Perl Tcl::Tk. The subtle difference is 
that Perl controls the interface though TCL. I've found it much more 
satisfying and much more stable. One of the biggest advantages is access 
to a lot more widgets because you can get at any widget you can get 
under TCL/TK. I am using VTCL to graphically build my GUI forms, the the 
Perl script "executes the TCL interface" with TCL::TK.

Getting it all going is prety straight forward, install Cygwin's TCL TK 
(which uses the x-server) then then the perl packages off CPAN compile 
out of the box (see my earlier cygwin post about the snit gotcha).

http://vkonovalov.ru/cgi-bin/perl-tcltk-wiki.cgi/
http://www.cygwin.com/ml/cygwin/2007-10/msg00221.html
http://www.nntp.perl.org/group/perl.tcltk/
http://vkonovalov.ru/vtcl-usage/Using_vtcl_for_creating_Tcl-Tk_GUI_for_Perl.html

Regards,
Jason

Michael Kairys wrote:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">
> "Michael Kairys" <kairys@comcast.net> wrote in message 
> news:fjsor5$p2j$1@ger.gmane.org...
>
>> It's all pretty disappointing, compared to ActiveState's 
>> implementation, which looks much better and requires no setup, no 
>> extraneous directories on my path, and no otherwise uneeded daemons.
>
> A little research reveals this issue has been around for a while and 
> is apparently well-known by everyone but me :)
>
> From: "Yaakov S (Cygwin Ports)" <yselkowitz at users dot sourceforge 
> dot net>
> To: cygwin at cygwin dot com
> Date: Wed, 14 Dec 2005 17:54:19 -0600
> Subject: Re: PerlTK under Windows
> References: <dnq98d$411$1@sea.gmane.org>
>
>
> Andrew DeFaria wrote:
>> However I'd like PerlTk to fall back to using Windows widgets much like
>> rxvt will do a Windows window if there is no X server to connect to.
>
> Just how rxvt manages to use both X11 and Win32GUI is unique, as has
> been discussed before at length.  Don't expect anything else X11 based
> to do that on Cygwin.
>
> perl-Tk is X11-based because it *does not compile* on Cygwin for Win32.
> PTC.
>
>
>
> </div>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list