Version 3 of The list of Tk widgets

Updated 2009-05-26 14:46:32 by LGT

Here is a script to display each widget available in Tk. It made the assumption that all widgets begin with a lowercase letter.

 #
 # the dynamic list of Tk widgets
 #
 package require Tk;

 set tkCommands [lsort [info commands "::tk::\[a-z\]*"]]

 foreach cmd $tkCommands {
         puts [string range $cmd 6 end]
 }

Category TK