Version 34 of tklib

Updated 2003-12-12 17:51:24

Purpose: to discuss the tklib script library/module from http://tcllib.sourceforge.net/ , its uses, policies, got-chas, etc.


Currently tklib includes the following packages:


List here the serious candidates for inclusion in tklib (these already exist in the appropriate SourceForge project):


lv any real reason to put bwidgets into tklib? It already is a distribution that many get.

Remember to list only items that come in Tk scripting - compiled widgets like tkimg, tkhtml, tktable, tktreectrl, blt, tix, vu, tkdnd, etc. belong in the various Batteries Included distributions.

And some pieces of code here on the wiki that might be useful to add to tklib would include:

Another systematic source for tklib-appropriate ideas are the add-ons Perl/Tk and Tkinter (and perhaps PMW) build in beyond narrow-sense Tk.

I encourage people to list other useful Tk related widgets and add-ons that are not already a part of some other extension.

In particular, look around the wiki - I suspect there's a number of wonderful possibilities here.

For instance, check out Commonly requested widgets - if you can find well written versions of these, putting them into tklib would be a wonderful idea. Do be careful to verify the licensing status of the code, and GET PERMISSION FROM THE AUTHOR before adding code to the library though.


the other thing needed is a body interested enough in seeing more tk megawidgets being commonly available that the work necessary begins. So far, lots of words, but no action.


If you read the tcllib page, you will find information about content requirements, submission guidelines, etc. for your software.

However, recently tclguy summaried the process on news:comp.lang.tcl as:

  1. say you want to add a module in one of the forums where the admins hang out (the Wiki chat, http://www.tcl.tk/ , comp.lang.tcl, the tcllib developers mailing list are all possible locations)
  2. get a SourceForge developer login.
  3. Send it to one of the tklib administrators, asking them to add you as a member to the tklib cvs list.
  4. Create a new module in tklib.
  5. Add it to the tklib Makefile module list.
  6. Add in your code.
  7. Hopefully add in documentation and test cases, and perhaps even some demo code.
  8. Commit the changes. Be certain to add relevant comments to the CVS and hopefully the tklib ChangeLog.

See also tcllib for the policies and discussions relating to another module of this project, which has tcl-only procedures.


AM Things I can add:

  • Flash windows (transient windows with a picture) en maximised windows - there are several such scripts around
  • Bindings for zooming/panning in a canvas
  • Scaling functions (so that you can add items to a canvas in world coordinates)

Further ideas:

  • emu_graph
  • gtklook.tcl and general "griffionisations"
  • presentation graphics - such as the various slide shows

Category Package | Category GUI | Category Widget