summaryrefslogtreecommitdiffstats
path: root/library/demos/ttkbut.tcl
Commit message (Collapse)AuthorAgeFilesLines
* Contribution by Patrick Fradin <patrick.fradin@planar.com>contrib_patrick_fradin_code_cleanupandreask2013-01-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Quoting his mail: <pre> ========================================================== Hi Jeff, I spent some of my time to contribute to the TclTk community ! I'm in late for Christmas gift but like we said in French : "Mieux vaut tard que jamais". ;-) I've use TclDevKit 5.3.0 tclchecker to analyse TclTk code in Tcl and Tk library directories (library, tools and tests) to correct a lot of warnings and few errors. (encapsulate some expr, use 'chan xxx' instead of fconfigure, fileevent...) I've made some improvements too : Examples : - Use 'lassign' instead of many 'lindex' of 'foreach/break' loop. - Use 'in' or 'ni' operators instead of 'lsearch -exact' or to factorise some eq/ne && / || tests. - Use 'eq' or 'ne' to tests strings instead of '==' or '!='. - Use 'unset -nocomplain' to avoid 'catch {unset...}'. - Remove some useless catch around 'destroy' calls. - Use expand {*} instead of 'eval'. Don't touch a lot of code because I don't know all structs and lists. I think it could be a greater improvement to reduce 'eval' calls. Due to previous experience, I dot not change any indentation ! ;-) ========================================================== </pre>
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |
* | library/demos/*.tcl: Omit contraindicated [package require Ttk].jenglish2008-12-111-2/+1
|/ | | | | | Remove logic that switches [ttk::scrollbar]s to [tk::scrollbar]s based on [tk windowingsystem]; this is already handled in library/ttk/scrollbar.tcl.
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* More widget demos!dkf2007-10-221-6/+35
|
* * library/demos/widget: Aqua GOOBE, cleanup icons.das2007-10-171-2/+2
| | | | | | | * library/demos/ttkbut.tcl: * library/demos/button.tcl: restore setting of button highlightbackground on Aqua.
* Added demo of basic Ttk widgets.dkf2007-10-171-0/+58