Skip to content
A Tk interface for Perl
Branch: master
Clone or download
Latest commit 2c96533 Jul 3, 2013
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib typo fixes Jul 4, 2013
MANIFEST Moved the modules to the lib directory Nov 29, 2009
README Add references to the public GIT repository. Jan 16, 2009


The Tkx module provides yet another Tk interface for Perl.  Tk is a GUI
toolkit tied to the Tcl language, and Tkx provides a bridge to Tcl that
allows Tk based applications to be written in Perl.

The main idea behind Tkx is that it is a very thin wrapper on top of
Tcl, i.e. that what you get is exactly the behaviour you read about in
the Tcl/Tk documentation with no surprises added by the Perl layer.
In order to use Tkx, you need to understand enough Tcl to be able to
read the documentation for Tcl/Tk and figure out how this maps to the
Tkx.  You will not need to write any Tcl code though, as all your GUI
work, including the creation of megawidgets can be done in Perl using

The benefit of this approach compared Nick Ing-Simmons's classic
module is that you can always use the latest features that Tk/Tcl
provides and that you can use Tcl's native megawidgets directly. has stagnated recently because of the huge effort needed to port
it to run with newer versions of Tk.  The downside of the Tkx approach
is that you will need to know a bit about Tcl and that you have to
install Tcl/Tk on both your development and deployment systems.
Another downside is that you will not be able to use any of the Tk::
add-ons or megawidgets already present on CPAN.

Tkx is the toolkit used to implement the GUI frontends of ActiveState's
PDK tools.

In order to install Tkx, you will need to have Tcl/Tk-8.4 and perl-5.8
with the module installed.  Installation otherwise follow the
normal drill:

   perl Makefile.PL
   make test
   make install

If you have questions about this code or want to report bugs send a
message to the <> mailing list.  To subscribe to this
list send an empty message to <>.

The official source repository for Tkx is  You can grab the latest sources

   git clone git://

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

Copyright 2005 ActiveState.  All rights reserved.
You can’t perform that action at this time.